undefined 不是一个对象(评估 route.routeName) [英] undefined is not an object (evaluating route.routeName)

查看:60
本文介绍了undefined 不是一个对象(评估 route.routeName)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当将博览会从 (16.0.0) 更新到 (24.0.0) 并从 (git+https://github.com/react-community/react-navigation.git) 到 (^1.0.0-beta.21) 版本,出现这个错误

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

推荐答案

终于找到了解决方法,这是一个未公开 DrawerNavigatorConfig:

Finally found out how to solve this, its an undocumented DrawerNavigatorConfig:

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

看这里:https://github.com/react-community/react-navigation/issues/3148#issuecomment-352778884

这篇关于undefined 不是一个对象(评估 route.routeName)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆