【发布时间】:2022-01-02 20:47:56
【问题描述】:
由于某种原因,我的项目无法识别react-native-gesture-handler 的安装。该问题仅在 Android 设备和模拟器上进行测试时出现。
模块添加到package.json 为"react-native-gesture-handler": "^1.10.3",。
完整的错误描述:
react-native-gesture-handler module was not found. Make sure you're running your app on the native platform and your code is linked properly (cd ios && pod install && cd ..).
For installation instructions, please refer to https://docs.swmansion.com/react-native-gesture-handler/docs/#installation
我尝试了以下方法:
- 按照此处的安装指南进行操作:https://docs.swmansion.com/react-native-gesture-handler/docs/#installation
- 重启地铁
- 试过
npm install --save react-native-gesture-handler - 清洁的 Gradles
- 删除并重新安装 node_modules
- 在设备上重新安装项目
有什么建议吗?
【问题讨论】:
标签: android reactjs react-native npm react-native-gesture-handler