diff --git a/src/VideoView.tsx b/src/VideoView.tsx deleted file mode 100644 index 2300a642a3..0000000000 --- a/src/VideoView.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import React from 'react' -import type { VideoNativeProps } from './fabric/VideoNativeComponent'; -import RNCVideoComponent from './fabric/VideoNativeComponent' -import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource' -import type { ResolvedAssetSource } from 'react-native/Libraries/Image/AssetSourceResolver'; - -export interface VideoViewProps extends Omit { - source: { - uri: string - } | number -} - -export default function VideoView({ source: sourceProp, ...props }: VideoViewProps) { - const source = resolveAssetSource(sourceProp) || {} as ResolvedAssetSource; - const shouldCache = !(source as any).__packager_asset; - - let uri = source.uri || ''; - if (uri && uri.match(/^\//)) { - uri = `file://${uri}`; - } - - const isNetwork = !!(uri && uri.match(/^https?:/i)); - const isAsset = !!(uri && uri.match(/^(assets-library|ph|ipod-library|file|content|ms-appx|ms-appdata):/i)); - - - return ( - - ) - }