mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-08-16 02:56:22 +00:00
13 lines
657 B
JavaScript
13 lines
657 B
JavaScript
"use strict";
|
|
|
|
import { Platform, UIManager } from 'react-native';
|
|
import VideoViewNativeComponent from '../../spec/fabric/VideoViewNativeComponent';
|
|
const LINKING_ERROR = `The package 'react-native-video' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
ios: "- You have run 'pod install'\n",
|
|
default: ''
|
|
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
const ComponentName = 'VideoView';
|
|
export const NativeVideoView = UIManager.hasViewManagerConfig(ComponentName) != null ? VideoViewNativeComponent : () => {
|
|
throw new Error(LINKING_ERROR);
|
|
};
|
|
//# sourceMappingURL=NativeVideoView.js.map
|