Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
DrawerNavigator with dynamic routes should be possible #3591
The issue tracker is reserved for bug reports only.
If you have a question, feature request, or an idea for improving the library or its related tools, please try one of the following resources:
Please see this snack for what I wish to achieve (with code) : https://snack.expo.io/HJ7ggj0vz
Look specifically in DrawerNavigation.js
I'm trying to implement a DrawerNavigator with a list of dynamic routes from Redux state. The DrawerNavigator is a child of a TabNavigator. The TabNavigator is setup so there is a menu button which toggles the drawer open and closed.
This is an example of a DrawerNavigator with pre-defined routes: https://snack.expo.io/B1VlMsADf
You'll see that, in the first one, I left a comment about the static router property.
I'm fairly confident that the example would run if I could find a way to add that router property to my HOC.
I'd appreciate any assistance. I've been trying to get this to work for four days.
I should be able to define dynamic routes from redux state.
How to reproduce
Run this and examine the source specifically of DrawerNavigator.js: https://snack.expo.io/B1VlMsADf