我按照他们网站上安装react-navigation 3.x的说明进行操作。我重新构建了应用程序,甚至创建了新项目,并再次按照说明进行操作。 但仍然出现与上述相同的错误。有什么想法吗?
编辑:我正在使用react-native run-ios运行应用程序react-native cli。我没有使用 Xcode
最佳答案
看起来这与 RN 0.60
中新的自动链接功能有关。
要暂时修复,只需将以下 RNGesureHandler 的 podspec 添加到 ios/Podfile
pod 'RNGestureHandler', :podspec => '../node_modules/react-native-gesture-handler/RNGestureHandler.podspec'
然后在ios目录下运行pod install
进行安装。
关于javascript - null 不是对象(评估 '_RNGestureHandlerModule.default.Direction' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56915665/