尽管我更新了我的 Pod,但我在库中遇到了一些问题react-native-permissions
。
这是我的podfile
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
Run Code Online (Sandbox Code Playgroud)
添加后,我尝试从 xcode 中清理构建文件夹并更新我的 pod pod install
,但仍然遇到错误
ExceptionsManager.js:149 Error: react-native-permissions: NativeModule.RNPermissions is null.
ExceptionsManager.js:149 Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
Run Code Online (Sandbox Code Playgroud)
奇怪的是,当我尝试在 Android 中运行我的应用程序时,它仍然发生。
我也尝试删除node_modules
并重新安装,但仍然不起作用。
我设法通过删除^
我的package.json
so from "react-native-permissions": "^3.6.1",
来 修复它"react-native-permissions": "3.6.1",
归档时间: |
|
查看次数: |
3440 次 |
最近记录: |