Closed victorkvarghese closed 6 years ago
Thanks for submitting! Could you please provide a more detailed example on how you use the Bottom Navigation together with react-navigation? I'm a bit surprised that your example uses < BottomNavigation />
, since you would normally use NavigationComponent
for react-navigation.
I'll put this on hold since v1.0.0 doesn't contain out-of-the-box support for React Navigation anymore. Read more about the details here.
I upgraded to v1.0.0 and added the logic on onTabPress
. Now the callback is working as expected without any bugs.
But regarding the old version I was not using navigationComponent
. I need custom bottom component so that has a collapsing sheet above ..
I was using the onTabChange callback to manually change the screens in the stack.. (But this callback was acting weird when i switched to react navigation v.2.1) in . v0.9.0
Ah, interesting, you implemented the Bottom Navigation without the NavigationComponent
– that's actually great to hear. It's also great to hear that you directly updated to v1.0.0 and it worked. 🙂
I'm closing this issue since the callback is now working as expected. 🎉
Current Behaviour
onTabChange is getting called when a navigate() action is called (From one StackNavigator to another StackNavigator) This happens only when i'm using react-navigation v2.0.1 . this callback is not getting called v1.5.11.
Expected Behavior
onTabChange should only call when tab is changed or Pressed. This callback shouldn't work when a simple navigate action is called
How to reproduce
Your Environment