私はプロジェクトでreact-native-videoを使用しようとしていますが、実行するとiOSシミュレータの赤い画面にSuper expression must either be null or a function, not undefined
が表示されます。私は非常に簡単なテストアプリで再現することができますreact-native-video:スーパー式はnullまたは関数のいずれかでなければなりません
:
> react-native init MyApp
> cd MyApp
> npm install react-native-video --save
> rnpm link react-native-video
は、他の輸入後index.ios.js
にimport Video from 'react-native-video';
かvar Video = require('react-native-video');
を追加します。
> react-native run-ios
ここVideo.jsです。 Via console.log
私はComponent
が未定義であることがわかります。それはエラーを説明するだろうが、私はそれについて何をすべきか分からない。インストール済み
バージョン:
から
"react-native-video": "^0.7.1"
を削除するだけで試みたが、それが正常に動作します。唯一の違いは、 "react-native-video"バージョンは "^ 0.8.0-rc" – Chernivです。私は昨日インストールし、0.7.1を得ました。今私は0.8.0-rcを取得し、それは動作します:) – Jake