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:

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:

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


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.