React Navigation - Undefined is not an object in DrawerView

I just recently upgraded my app from Expo 21 to 24 and when I tried to load is I received the following error:

Screenshot_2018-01-07-13-04-35

I thought it might have something to do with how my Drawer component was configured but I couldn’t see any notable issues. Here is my Drawer component source code:

https://github.com/bpasulyko/screen-wars/blob/master/navigation/Drawer.js

And this is the file containing the StackNavigators that are used in the Drawer:

https://github.com/bpasulyko/screen-wars/blob/master/navigation/Router.js

Hi!

I had same problem, In your drawer navigation properties add this code:

drawerOpenRoute: 'DrawerOpen',
drawerCloseRoute: 'DrawerClose',
drawerToggleRoute: 'DrawerToggle'
1 Like

This worked perfect, thank you!

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.