Comments (7)
ios吗?
pod 添加 pod 'react-native-orientation-locker', :podspec => '../node_modules/react-native-orientation-locker/react-native-orientation-locker.podspec'
然后 pod install 试试
from react-native-rn-videoplayer.
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. 这个是因为原生库没链接上吗?
from react-native-rn-videoplayer.
react-native-linear-gradient
react-native-svg
react-native-system-setting
react-native-video
你的项目之前是不是安装了这四个其中之一,是的话应该是版本冲突
from react-native-rn-videoplayer.
之前安装过,但是现在已经卸载了
from react-native-rn-videoplayer.
试试
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 没有问题的
from react-native-rn-videoplayer.
还是不行,我是用yarn 安装的。我看这个项目里面没有iOS的目录,和这个有关系么?
from react-native-rn-videoplayer.
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
Video.js:11
loadModuleImplementation
require.js:321:11
guardedLoadModule
require.js:201:44
runUpdatedModule
require.js:705:16
metroHotUpdateModule
require.js:539:39
define
require.js:53:8
global code
Video.bundle?platform=ios&dev=true&minify=false&modulesOnly=true&runModule=false&shallow=true:1:3
[native code]:0
inject
HMRClient.js:78:4
forEach
[native code]:0
injectUpdate
HMRClient.js:87:2
on$argument_1
HMRClient.js:155:20
emit
index.js:202:16
_ws.onmessage
HMRClient.js:134:10
EventTarget.prototype.dispatchEvent
event-target-shim.js:818:20
_eventEmitter.addListener$argument_1
WebSocket.js:232:8
emit
EventEmitter.js:189:10
__callFunction
MessageQueue.js:425:19
__guard$argument_0
MessageQueue.js:112:6
__guard
MessageQueue.js:373:10
callFunctionReturnFlushedQueue
MessageQueue.js:111:4
callFunctionReturnFlushedQueue
[native code]:0
from react-native-rn-videoplayer.
Related Issues (20)
- 如果能在加个播放速率,那就简直完美了 HOT 8
- 在安卓下有bug,播放时的视频尺寸不对 HOT 5
- 发现个致命问题,这串代码在render里执行 HOT 2
- 全屏后,无法退出全屏 HOT 1
- 可以支持视频列表吗 HOT 9
- Could not resolve com.android.tools.build:gradle:3.3.1 HOT 1
- android 视频关闭后,状态栏背景颜色会变白色 HOT 9
- IOS 报错 Invariant Violation: Native module cannot be null. HOT 4
- 需要列出依赖了哪些第三方库
- null is not an object (evaluating 'event.nativeEvent.pageX)
- android react-native 0.63.2 react-native-rn-videoplayer 2.2.10
- 拖动进度条崩溃,有人遇到么还是我环境没有好? HOT 4
- react-native-orientation-lock编译一直出错 HOT 1
- CONFIGURING一直卡60 HOT 3
- install进来之后按照文档配置完,开始run发现卡死在这里 HOT 8
- 无法配置控件宽高,resizeMode写死了none后在有点设备下视频内容无法完整显示
- Getting console warnings
- is:issue is:open 当全屏播放时候,左上角的“<”返回按钮退出不了 全屏,也后退不了,是否可以加一个OnBigBack的回调呢?或许自动退出全屏 HOT 8
- Full screen Landscape issue
- need update for react native 0.73.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-rn-videoplayer.