0
我想在一个项目中使用react-native-video但是当我运行它,我得到Super expression must either be null or a function, not undefined
在iPhone模拟器一个红色的屏幕上。反应原生视频:超表达必须是空或功能
我可以用一个非常简单的测试应用程序重现:
> react-native init MyApp
> cd MyApp
> npm install react-native-video --save
> rnpm link react-native-video
添加import Video from 'react-native-video';
或var Video = require('react-native-video');
到index.ios.js
等进口后。
> react-native run-ios
这里的Video.js。通过console.log
我可以看到Component
是未定义的。这将解释错误,但我不知道该怎么做。
版本安装:
只是试图删除
"react-native-video": "^0.7.1"
,并能正常工作。唯一的区别是,“反应本地视频”的版本是:“^ 0.8.0-RC” – Cherniv你说得对。我昨天安装了0.7.1。现在我得到0.8.0-rc,它工作:) – Jake