react-navigation / react-navigation

Routing and navigation for your React Native apps
https://reactnavigation.org
23.3k stars 4.97k forks source link

Bottom tab navigation only works for few seconds when refresh then it doesn't work #11965

Closed Yawan-1 closed 2 weeks ago

Yawan-1 commented 3 weeks ago

Current behavior

I am trying to implement bottom tabs in my react-native created through expo so I have add tabs bar into

    <NavigationContainer>
      <Tab.Navigator>
        <Tab.Screen name="Home" component={Home} />
        <Tab.Screen name="Settings" component={Settings} />
      </Tab.Navigator>
    </NavigationContainer>

But It only works sometimes or when I newly refresh/reload the app in my real device (In Expo) and then It doesn't click on buttons or change tabs/page.

Expected behavior

It should work or change tabs when I click on bottom tab from one another. But It just freezes after few seconds.

Reproduction

https://snack.expo.dev/E3v5AFG1lJVJxjRF5ZQyR

Platform

Packages

Environment

package version
@react-navigation/native 6.1.17
@react-navigation/bottom-tabs 6.5.20
@react-navigation/native-stack 6.9.26
react-native-safe-area-context 4.8.2
react-navigation/native 6.1.17
react-native-screens 3.29.0
react-navigation/drawer 6.6.15
react-native 0.73.6
expo 50.0.14
node 20.12.1
npm or yarn 10.5.2
github-actions[bot] commented 3 weeks ago

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

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

github-actions[bot] commented 3 weeks ago

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

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

github-actions[bot] commented 3 weeks ago

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

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