启动react-native的项目后
我安装了react-navigation这个导航库后就报这个错误了
模拟器红屏
解决方案:
项目根目录:npm install --save react-
native
-gesture-handler
然后react-
native
link react-
native
-gesture-handler,
运行会告诉你找不到RNGestureHandler
然后去ios文件夹
cd ios
再重新install一下: pod install
再cd ..回到根目录
运行项目
成功