Reputation: 1657
I am using react-router-native
for routing. Usually when ever new route
is pushed to history
the current screen will be unmounted and new screen is mounted. But As per documentation nested routing is possible in web. They haven't mentioned anything about mobile.
I just want to know if nested routing is possible react-native
as I want two routes to be active at a time.
Thank You.
Upvotes: 0
Views: 152
Reputation: 465
in case of React Native use React navigation https://reactnavigation.org/ and its stack routing in case of mobile development where you mount a new view by navigate() and unmount by goback() to history ref - https://reactnavigation.org/docs/en/stack-navigator.html
Upvotes: 1