Twitter like navigation layout #823
-
Can anyone help me implement this type of navigation layout where a non-primary tab bar is nested inside of a primary tab bar item, as show above in the Twitter app (the for you and following tabs nested inside the main home tab). I was not able to replicate this, as nesting a non primary tab bar inside of a primary tab bar item, simply does not render it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @SumitR9910 nice to hear from you. I've actually written a twitter sample with a non-primary Maybe the problem you're having is that |
Beta Was this translation helpful? Give feedback.
-
Thanks for the fast reply. I solved this problem by rendering the non-primary tab bar inside of a stack of its own i.e a stack nested inside of the tabBar item which contains the non-primary tab bar. It is working as intended. Although styling the tabBar has some issues, like the unselectedTintColor prop does not work (I am testing on android). I am trying to migrate from Expo Router, so sorry if I seem clueless. |
Beta Was this translation helpful? Give feedback.
Hi @SumitR9910 nice to hear from you. I've actually written a twitter sample with a non-primary
TabBar
on the Notifications scene inside a primaryTabBar
.Maybe the problem you're having is that
TabBarItems
can only have a single (native) child. If that child is aView
you should set thecollapsable
prop to false so that you don't accidentally end up with more than one child on the native side.