Closed zinete closed 4 years ago
ios吗?
pod 添加 pod 'react-native-orientation-locker', :podspec => '../node_modules/react-native-orientation-locker/react-native-orientation-locker.podspec'
然后 pod install 试试
ios吗?
pod添加pod'react-native-orientation-locker',:podspec =>'../node_modules/react-native-orientation-locker/react-native-orientation-locker.podspec'
然后pod install试试 非常感谢,现在可以编译通过了。但是导入这个包就报 Native module cannot be null. 这个是因为原生库没链接上吗?
react-native-linear-gradient react-native-svg react-native-system-setting react-native-video
你的项目之前是不是安装了这四个其中之一,是的话应该是版本冲突
之前安装过,但是现在已经卸载了
试试
npm uninstall react-native-linear-gradient npm uninstall react-native-orientation-locker npm uninstall react-native-svg npm uninstall react-native-system-setting npm uninstall react-native-video
npm uninstall react-native-rn-videoplayer
重新安装 npm install react-native-rn-videoplayer --save 我也是0.62.2 没有问题的
还是不行,我是用yarn 安装的。我看这个项目里面没有iOS的目录,和这个有关系么?
Error: Requiring module "node_modules/react-native-rn-videoplayer/index.js", which threw an exception: Invariant Violation: Native module cannot be null.
loadModuleImplementation require.js:269:26
react-native": "0.62.2无法链接这个库,直接报错找不到