我正在尝试在项目中使用react-native-web-rtc。我已完成 ios 的所有设置,但出现此错误
Invariant Violation: View config getter callback for component `RTCVideoView` must be a function (received `undefined`).
This error is located at:
in RTCVideoView (at SomeView.react.tsx:96)
in RCTView (at View.js:34)
这类似于react-native-linear-gradient库问题
Invariant Violation: View config getter callback for component BVLinearGradient must be a function (received undefined)
This error is located at:
in BVLinearGradient (at react-native-linear-gradient/index.ios.js:54)
in LinearGradient (at SomeView.react.tsx:90)
我试过一堆东西,比如
pod install
npx pod-install
react-native link react-native-linear-gradient
- 清除守望者缓存,清除 pod 缓存
这个问题仍然存在,我认为库无法识别 nativeModule,
没有在android上尝试过,这个问题是在使用ios时出现的。