当将 expo 从 (16.0.0) 更新到 (24.0.0) 并将导航从 (git+ https://github.com/react-community/react-navigation.git ) 响应到 (^1.0.0-beta.21) 版本时,发生此错误
最佳答案
终于找到了解决这个问题的方法,它是一个未记录的 DrawerNavigatorConfig:
drawerOpenRoute: 'DrawerOpen',
drawerCloseRoute: 'DrawerClose',
drawerToggleRoute: 'DrawerToggle'
看这里: https://github.com/react-community/react-navigation/issues/3148#issuecomment-352778884
关于react-native - undefined 不是对象(评估 route.routeName),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47886782/