Git Product home page Git Product logo

Comments (7)

A-ANing avatar A-ANing commented on June 8, 2024

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.

zinete avatar zinete commented on June 8, 2024

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.

A-ANing avatar A-ANing commented on June 8, 2024

react-native-linear-gradient
react-native-svg
react-native-system-setting
react-native-video

你的项目之前是不是安装了这四个其中之一,是的话应该是版本冲突

from react-native-rn-videoplayer.

zinete avatar zinete commented on June 8, 2024

之前安装过,但是现在已经卸载了

from react-native-rn-videoplayer.

A-ANing avatar A-ANing commented on June 8, 2024

试试

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.

zinete avatar zinete commented on June 8, 2024

还是不行,我是用yarn 安装的。我看这个项目里面没有iOS的目录,和这个有关系么?

from react-native-rn-videoplayer.

zinete avatar zinete commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.