bottom-tab-navigator gets hidden when I navigate to another screen using drawer

5
closed
ravi123saxena
ravi123saxena
Posted 1 month ago

bottom-tab-navigator gets hidden when I navigate to another screen using drawer #10043

Current behavior

We have four tabs in bottom and 3 items in drawer menu. When first tab screen opened and when go to drawer menu and navigate any item then my tabbbar menu will get removed and I can't get this back further because currently selected screen is from drawer menu.

App.js:

render() { return ( {this.state.loginState ? ( <Drawer.Navigator drawerContent={props => <DrawerMenu {...props} />}> <Drawer.Screen name="tabbar" component={BottomBar} /> <Drawer.Screen name="home" options component={Home} /> <Drawer.Screen name="profile" component={Profile} /> <Drawer.Screen name="about" component={About} /> <Drawer.Screen name="settings" component={Settings} /> <Drawer.Screen name="dashboard" component={Dashboard} /> </Drawer.Navigator> ) : ( )} ); } }

Expected behavior

Tabbar should not be removed while navigate screen from drawer menu.

Reproduction

abc

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

Environment

package version
@react-navigation/native
@react-navigation/bottom-tabs
@react-navigation/drawer
@react-navigation/material-bottom-tabs
@react-navigation/material-top-tabs
@react-navigation/stack
@react-navigation/native-stack
react-native-safe-area-context
react-native-screens
react-native-gesture-handler
react-native-reanimated
react-native-tab-view
react-native-pager-view
react-native
expo
node
npm or yarn
github-actions[bot]
github-actions[bot]
Created 1 month ago

Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a snack.expo.dev link or link to a GitHub repo under your username).

Can you provide a minimal repro which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.

github-actions[bot]
github-actions[bot]
Created 1 month ago

Couldn't find version numbers for the following packages in the issue:

  • @react-navigation/native
  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-bottom-tabs
  • @react-navigation/material-top-tabs
  • @react-navigation/stack

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

ravi123saxena
ravi123saxena
Created 1 month ago

I am using react navigation v5.

On Wednesday, October 13, 2021, github-actions[bot] < ***@wrote:

Hey! Thanks for opening the issue. The issue doesn't seem to contain a link to a repro (a snack.expo.dev link or link to a GitHub repo under your username).

Can you provide a minimal repro https://stackoverflow.com/help/minimal-reproducible-example which demonstrates the issue? A repro will help us debug the issue faster. Please try to keep the repro as small as possible and make sure that we can run it without additional setup.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/react-navigation/react-navigation/issues/10043#issuecomment-942068671, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCP5RAEZQDBBUHXBE4BPJLUGVAX5ANCNFSM5F4TMWPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

mrshahzeb7
mrshahzeb7
Created 1 month ago

it is expected behaviour ! when you navigate to 'about us','setting' or any other drawer screen it will not show bottom tab because bottom tab only exist in 'BottomTab' screen that is your first screen

github-actions[bot]
github-actions[bot]
Created 2 weeks ago

Hello 👋, this issue has been open for more than a month without a repro or any activity. If the issue is still present in the latest version, please provide a repro or leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution or workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix it.