我使用react-native-video收到奇怪的错误,如下所示
bundle.js:48849 Uncaught TypeError: Object(...) is not a function
at Module.../../../../../../../../../Documents/EnglishVideo/node_modules/react-native-video/Video.js (bundle.js:48849)
at __webpack_require__ (bundle.js:725)
at fn (MediaControls.js:2)
at Module.../../../../../../../../../Documents/EnglishVideo/App.js (bundle.js:822)
at __webpack_require__ (bundle.js:725)
at fn (MediaControls.js:2)
at Module.../../../../../../../../../Documents/EnglishVideo/node_modules/expo/AppEntry.js (bundle.js:9534)
at __webpack_require__ (bundle.js:725)
at fn (MediaControls.js:2)
at Object.0 (bundle.js:88460)
at __webpack_require__ (bundle.js:725)
at bundle.js:792
at bundle.js:795
../../../../../../../../../Documents/EnglishVideo/node_modules/react-native
__webpack_require__ @ bundle.js:725
fn @ MediaControls.js:2
0 @ bundle.js:88460
__webpack_require__ @ bundle.js:725
(anonymous) @ bundle.js:792
(anonymous) @ bundle.js:795
bundle.js:13229 C:/Users/shaha/Documents/EnglishVideo/node_modules/react-native-video/Video.js
Attempted import error: 'requireNativeComponent' is not exported from 'react-native-web/dist/index'.
我一直在尝试使用Expo将视频添加到我的react本机页面上,显然,由于使用标签的最起码的代码也会给我带来很多错误,因此我无法实现这一点。