React Navigation - Undefined is not an object in DrawerView


#1

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:


#2

Hi!

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

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

#3

This worked perfect, thank you!


closed #4

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