Skip to content
Advertisement

react native: Android back button does not go back on the first click when I am inside the TopTabNavigator

The Android back button does not go back on the first click when I am inside the TopTabNavigator. What actually happens is that the tab goes left and right and only after a few presses of the Android back button only then it go back. How can such a thing be prevented and fix ?

in my example i have top tab navigator, and i want know how to prevented the situation that Makes navigation play between tabs and only with the second or third press of the Android back button take me back

JavaScript

Advertisement

Answer

JavaScript

https://reactnavigation.org/docs/bottom-tab-navigator#backbehavior

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement