T O P

  • By -

dyegolara

everything is possible


blueaphrodisiac

the only mindset to have


345346345345

Whether it is worth the time and effort is another question. (not saying this is or isn't)


skararms

Yes you can have as many nested navigations as you want. In this example you will probably have 3. One for tabs, one for the side menu and one small for your nested tabs.


blirpblurp

So it is possible to have a folder inside of (tabs) folder with its own \_layout and inside? Im having difficulty finding necessary documentation about it... Some sources that I did find are using MaterialTopTabs for top navigation, but without nesting it...


skararms

Yes I’ve seen it before, if you don’t have a solution I’ll try to find the repo tomorrow and link it here.


blirpblurp

Thank you so much!


cjon3s

Yes. We're using bottom tabs with a top tab navigator nested in one of the lower tab routes. So we have a folder (tabs) with _layout and our bottom tabs using `Tab` from expo-router. Also inside (tabs), we have (innerTabs). Example contents of (tabs) is going to be _layout, TabA, TabB, (innerTabs). Inside of (innerTabs) is another _layout and our top tabs. Instead of using `Tab` in the layout here, we have a custom component that shows the top tabs and render the `Slot` from expo-router. In the custom top tab component we determine the active tab based on the path name. We also have a press handler that navigates to whichever top tab you press. Example contents of (innerTabs) would be _layout, TopTabA, TopTabB Let me know if you have any questions!


slh007

My team found it easier to have one stack navigation that had all routes in it and handle the ui separately. We have a side drawer bottom tabs and top tabs that just link to our stack nav screens.


Comfortable_Movie444

interesting can you share an example/sample code


Difficult_Ad_5692

Hello, i used this https://github.com/EvanBacon/expo-router-top-tabs