[RN] React Native 使用 react-navigation 报错 "Unable to resolve module `react-native-gesture-handler`...

在React Native 使用 react-navigation 过程中,报错 "Unable to resolve module `react-native-gesture-handler`

 

这是因为 react-navigation 依赖

react-native-gesture-handler

 

解决方法:

npm install react-native-gesture-handler --save


对应版本:

"react-native-gesture-handler": "^1.2.1",
"react-navigation": "^3.9.1"

 

参考文档:

https://stackoverflow.com/questions/55358811/error-unable-to-resolve-module-react-native-gesture-handler
https://reactnavigation.org/docs/en/getting-started.html#installation

 

本博客地址: wukong1688

本文原文地址:https://www.cnblogs.com/wukong1688/p/10818370.html

转载请注明出处!谢谢~~

 

转载于:https://www.cnblogs.com/wukong1688/p/10818370.html

你可能感兴趣的:([RN] React Native 使用 react-navigation 报错 "Unable to resolve module `react-native-gesture-handler`...)