ReactNavDrawer
ReactNavDrawer copied to clipboard
How to make the route Dynamic of Drawer Navigation?
I am using this function to send different parameters every time but I found the route page is always first page on the drawer pages
export const getDrawerConfig = (drawerWidth, drawerPosition, initialRouteName) => ({ drawerWidth, drawerPosition, initialRouteName, drawerOpenRoute: 'DrawerOpen', drawerCloseRoute: 'DrawerClose', drawerToggleRoute: 'DrawerToggle', });
I want make the route dynamic depend on function the parameter, how i can fix it ?