gpt4 book ai didi

react-native - null 不是对象(评估 'rngesturehandlermodule.direction' )

转载 作者:行者123 更新时间:2023-12-01 08:07:11 27 4
gpt4 key购买 nike

下载 "react-native-gesture-handler" dependencies: "^ 1.1.0" 后,我正在使用 react-native 创建登录系统。和 "react-navigation": "^ 3.5.1"开始出现以下消息错误:

null is not an object (evaluating 'rngesturehandlermodule.direction')



我试图删除项目并重新修改它,删除并重新安装 node_modules 文件夹并重新安装依赖项,但没有任何效果。

最佳答案

我遇到过同样的问题。然后我安装了 react-navigation & react-native-gesture-handler步骤如下:
步骤:

  • 删除 node_modulespackage-lock.json
  • npm install
  • npm install --save react-navigation
  • npm install --save react-native-gesture-handler
  • react-native link

  • 你可以找到原答案 here

    关于react-native - null 不是对象(评估 'rngesturehandlermodule.direction' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55343967/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com