Traviskn/react-router-native-stack

Nested stacks

rstuven opened this issue · 3 comments

For example, an outer stack using 'cube' with an inner stack using 'slide-horizontal'. The inner stack should be reactive to changes in its children routes, but the outer stack not.

This functionality should be supported via a key prop on your route component: https://github.com/Traviskn/react-router-native-stack#nested-routes

This assumes that you have a component structure where inner stack is being rendered by a route component in the outer stack

Thanks, I was missing that, but also it wasn't working for me in the first place when there were no matching child routes (because a series of errors when children or previousChildren were null). Just sent PR #31 with the fix.

Thanks for your PR! I've published a new version with your fix