mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-08 07:28:37 +08:00
1
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React, { useRef, useState } from 'react';
|
||||
import React from 'react';
|
||||
import { View, StyleSheet, Dimensions, Text, Platform } from 'react-native';
|
||||
import { NativeVideoPlayer } from './NativeVideoPlayer';
|
||||
|
||||
const { width } = Dimensions.get('window');
|
||||
const VIDEO_HEIGHT = width * 0.5625;
|
||||
@@ -30,8 +31,6 @@ export function VideoPlayer({ uri }: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
// Native: use expo-av
|
||||
const NativeVideoPlayer = require('./NativeVideoPlayer').NativeVideoPlayer;
|
||||
return <NativeVideoPlayer uri={uri} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user