undefined is not an object (evaluating route.routeName)
when update the expo from (16.0.0) to (24.0.0) and react navigation from (git+ https://github.com/react-community/react-navigation.git ) to (^1.0.0-beta.21) version, this error occured Finally found out how to solve this, its an undocumented DrawerNavigatorConfig: drawerOpenRoute: 'DrawerOpen', drawerCloseRoute: 'DrawerClose', drawerToggleRoute: 'DrawerToggle' Look here: https://github.com/react-community/react-navigation/issues/3148#issuecomment-352778884 remove ^ from package json before react-nativetion package it should be look like this "react-navigation": "1.0.0-beta.20" not "react