Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/193.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android react native video controls警告动画:未指定'useNativeDriver'。在第62.2节中_Android_React Native - Fatal编程技术网

Android react native video controls警告动画:未指定'useNativeDriver'。在第62.2节中

Android react native video controls警告动画:未指定'useNativeDriver'。在第62.2节中,android,react-native,Android,React Native,我正在使用react-native开发Android应用程序,在将react-native从60.0升级到62.2后,我正在我的应用程序中使用react-native视频控件 我遇到了错误 警告动画:未指定useNativeDriver。在React Native 62.2中,用于React Native视频控件 import Video from 'react-native-video'; import VideoPlayer from 'react-native-video-control

我正在使用react-native开发Android应用程序,在将react-native从60.0升级到62.2后,我正在我的应用程序中使用
react-native视频控件

我遇到了错误
警告动画:
未指定useNativeDriver
。在React Native 62.2中,用于React Native视频控件

import Video from 'react-native-video';

import VideoPlayer from 'react-native-video-controls';


 <View style={{ width: "100%", height: '100%', backgroundColor: '#065535' }} >
                  <VideoPlayer
                      navigator={this.props.navigator}

                      source={{ uri: "https://howtags.com/" + items.file_Name }}
                      style={{ width: '100%', height: '100%', top: 0, left: 0, bottom: 0, right: 0, position: "absolute" }}

                      ref={(ref) => { this.player = ref }}
                      resizeMode="cover"

                      posterResizeMode="cover"

                      fullscreen={true}
                      onEnd={this.onEnd}

                      onLoadStart={this.onLoadStart}
                      onProgress={this.onProgress}
                      paused={this.state.paused}

                      onFullScreen={this.state.isFullScreen}
                      volume={10}
                    />

    </View>

从“react native Video”导入视频;
从“react native video controls”导入视频播放器;
{this.player=ref}}
resizeMode=“封面”
posterResizeMode=“封面”
全屏={true}
onEnd={this.onEnd}
onLoadStart={this.onLoadStart}
onProgress={this.onProgress}
暂停={this.state.paused}
onFullScreen={this.state.isFullScreen}
卷={10}
/>

仅在升级到“react native”后,我才收到此错误“^0.62.2”,如果有人知道此解决方案,请帮助我

此问题现已解决。使用
react本机视频控件:^2.5.0

此控件现已修补。使用
react native video controls:^2.5.0

感谢您的回复,但我仍然收到相同的错误“警告动画:未指定useNativeDriver”先生,请检查软件包一次,我仍然收到错误,并且它无法正常工作。请帮助我解决警告并检查我的代码一次。谢谢。2.6.0在播放视频时出现一些错误。加载时间太长。有时视频未播放并暂停,请在github上提交任何问题。感谢您的回复,但我仍然收到相同的错误“警告动画:未指定useNativeDriver”先生,请检查软件包一次,我仍然收到错误,并且它无法正常工作。请帮助我解决警告并检查我的代码一次。谢谢。播放视频时,2.6.0中出现一些错误。加载时间太长。有时视频未播放并暂停,请在github上提交任何问题。