react-native - 如何在 React Native 中使用 Vdocipher?
问题描述
我正在尝试vdocipher
按照建议集成到我的本机应用程序中:这里。
但是在这样做时,我收到以下错误:
Invariant Violation: requireNativeComponent: "RCTVdoPlayerView" was not found in the UIManager.
This error is located at:
in RCTVdoPlayerView (at VdoPlayerView.js:134)
in VdoPlayerView (at LecturePlayer.js:90)
in RCTView (at View.js:34)
in View (at LecturePlayer.js:118)
in LecturePlayer (at App.js:17)
in RCTView (at View.js:34)
in View (at SafeAreaView.js:41)
in ForwardRef(SafeAreaView) (at App.js:13)
in App (created by ExpoRoot)
in ExpoRoot (at renderApplication.js:45)
in RCTView (at View.js:34)
in View (at AppContainer.js:106)
in RCTView (at View.js:34)
in View (at AppContainer.js:132)
in AppContainer (at renderApplication.js:39)
at node_modules\expo\build\logs\LogSerialization.js:155:14 in _captureConsoleStackTrace
at node_modules\expo\build\logs\LogSerialization.js:41:26 in serializeLogDataAsync
- ... 9 more stack frames from framework internals
我的代码是正确的,因为我能够从后端获取 otp 和其他数据。
<VdoPlayerView
showNativeControls={true}
style={{height: 200, width: '100%'}}
embedInfo={this.state.video}
/>
如何解决此错误?