A-ANing / react-native-rn-videoplayer

基于react-native-video的视频播放器(上下滑动改变音量屏幕亮度,缓冲进度,双击暂停等ios Android)
95 stars 40 forks source link

拖动进度条崩溃,有人遇到么还是我环境没有好? #28

Open anha0329 opened 3 years ago

anha0329 commented 3 years ago

Invariant Violation: [973,"RCTView",{"width":"<>"}] is not usable as a native method argument

A-ANing commented 3 years ago

抱歉,这应该是rn版本的问题,0.63后的版本我没有太多空闲时间来做兼容,也许你可以自己做一下兼容

A-ANing commented 3 years ago

或者说 有更多报错信息吗?

anha0329 commented 3 years ago

看了其他几个视频播放器的功能和扩展,觉得你这个相对较好, 打算使用 暂不放弃。看到报错信息如下, [Sat Apr 17 2021 12:12:29.970] ERROR Invariant Violation: [1013,"RCTView",{"width":"<>"}] is not usable as a native method argument

This error is located at: in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at view/index.js:423) in RCTView (at View.js:34) in View (at view/index.js:421) in RCTView (at View.js:34) in View (at view/index.js:416) in Speed (at react-native-rn-videoplayer/index.js:1157) in RCTView (at View.js:34) in View (at react-native-rn-videoplayer/index.js:1117) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at react-native-rn-videoplayer/index.js:1115) in RCTView (at View.js:34) in View (at react-native-rn-videoplayer/index.js:976) in RCTView (at View.js:34) in View (at react-native-rn-videoplayer/index.js:974) in VideoPlayer (at NewVideoView.js:68) in RCTView (at View.js:34) in View (at NewVideoView.js:58) in NewVideoView (at navigationStore.js:433) in Wrapped (created by SceneView) in SceneView (at StackViewLayout.tsx:889) in RCTView (at View.js:34) in View (at StackViewLayout.tsx:888) in RCTView (at View.js:34) in View (at StackViewLayout.tsx:887) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at StackViewCard.tsx:106) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at src/index.native.tsx:114) in Screen (at StackViewCard.tsx:93) in Card (at createPointerEventsContainer.tsx:95) in Container (at StackViewLayout.tsx:975) in RCTView (at View.js:34) in View (at src/index.native.tsx:145) in ScreenContainer (at StackViewLayout.tsx:384) in RCTView (at View.js:34) in View (at createAnimatedComponent.js:165) in AnimatedComponent (at createAnimatedComponent.js:215) in ForwardRef(AnimatedComponentWrapper) (at StackViewLayout.tsx:374) in PanGestureHandler (at StackViewLayout.tsx:367) in StackViewLayout (created by withOrientation) in withOrientation (at StackView.tsx:104) in RCTView (at View.js:34) in View (at Transitioner.tsx:267) in Transitioner (at StackView.tsx:41) in StackView (created by Navigator) in Navigator (created by KeyboardAwareNavigator) in KeyboardAwareNavigator (at LightboxRenderer.js:14) in RCTView (at View.js:34) in View (at LightboxRenderer.js:13) in _default (created by Navigator) in Navigator (created by NavigationContainer) in NavigationContainer (at Router.js:97) in App (at Router.js:122) in Router (at MainRouter.js:101) in MainRouter (at App.js:38) in RCTView (at View.js:34) in View (at App.js:33) in App (at renderApplication.js:45) in RCTView (at View.js:34) in View (at AppContainer.js:106) in ChildrenWrapper (at wrapRootComponent.js:9) in _default (at wrapRootComponent.js:8) in Root (at AppContainer.js:121) in RCTView (at View.js:34) in View (at AppContainer.js:132) in AppContainer (at renderApplication.js:39)

A-ANing commented 3 years ago

是否修改过代码 跟进度条的宽度代码有关