Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.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
React native 它有没有适合react native而不是。。。反应本地视频_React Native_React Native Video - Fatal编程技术网

React native 它有没有适合react native而不是。。。反应本地视频

React native 它有没有适合react native而不是。。。反应本地视频,react-native,react-native-video,React Native,React Native Video,React Native没有视频组件,因此您可能正在使用Expo 从“expo av”导入{Video};//https://docs.expo.io/versions/v40.0.0/sdk/video 否则,react原生视频对于香草(非世博会)react原生应用程序来说是一个不错的选择,我们也已经在商业上使用多年了 我们使用异步存储实现了缓存,但看起来至少也是这样 <Video source={{ uri: 'VID', }} s

React Native没有视频组件,因此您可能正在使用Expo

从“expo av”导入{Video};//https://docs.expo.io/versions/v40.0.0/sdk/video
否则,react原生视频对于香草(非世博会)react原生应用程序来说是一个不错的选择,我们也已经在商业上使用多年了

我们使用异步存储实现了缓存,但看起来至少也是这样

<Video
    source={{
      uri:
        'VID',
    }}
    style={styles.video}
    controls={true}
    resizeMode={'cover'}
    paused={paused}
    selectedVideoTrack={{
      type: 'resolution',
      value: 360,
}}/>