【问题标题】:undefined object (evaluating '_reactNavigation.ThemeColors.light')未定义的对象(评估'_reactNavigation.ThemeColors.light')
【发布时间】:2019-12-25 17:29:19
【问题描述】:

我正在研究原子,我将 NPM 与 react-native 一起使用。

当我尝试启动我的应用程序时出现此错误:

TypeError undefined 不是一个对象(评估 '_reactNavigation.ThemeColors.light')

我搜索了很多,但没有什么对我有用。

这是我手机上的错误:

【问题讨论】:

    标签: react-native npm


    【解决方案1】:

    安装以下版本:

    "react-native-gesture-handler": "^1.4.1",

    "react-native-reanimated": "^1.2.0",

    “反应导航”:“^4.0.5”,

    "react-navigation-drawer": "^2.2.1",

    "react-navigation-stack": "^1.8.0",

    “反应导航标签”:“^2.5.3”

    问题可能出在你的 react-navigation 版本你需要安装 4.x 版本

    【讨论】:

    • 4.x版本怎么安装?
    • npm install react-navigation@4.0.5
    • 我还必须安装react-native-screens
    猜你喜欢
    • 2016-12-04
    • 2019-09-26
    • 2019-12-12
    • 2019-08-16
    • 2017-01-16
    • 2020-08-06
    • 2020-01-09
    • 2017-05-03
    • 2023-03-07
    相关资源
    最近更新 更多