mirror of
https://github.com/zoriya/react-native-video.git
synced 2026-08-16 02:56:22 +00:00
fix: component linking method (#4601)
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
},
|
||||
"example": {
|
||||
"name": "react-native-video-example",
|
||||
"version": "7.0.0-alpha.0",
|
||||
"version": "7.0.0-alpha.1",
|
||||
"dependencies": {
|
||||
"@react-native-community/slider": "^4.5.6",
|
||||
"react": "18.3.1",
|
||||
@@ -78,7 +78,7 @@
|
||||
},
|
||||
"packages/react-native-video": {
|
||||
"name": "react-native-video",
|
||||
"version": "7.0.0-alpha.0",
|
||||
"version": "7.0.0-alpha.1",
|
||||
"devDependencies": {
|
||||
"@expo/config-plugins": "^10.0.2",
|
||||
"@react-native/eslint-config": "^0.77.0",
|
||||
|
||||
@@ -11,7 +11,7 @@ const LINKING_ERROR =
|
||||
const ComponentName = 'VideoView';
|
||||
|
||||
export const NativeVideoView =
|
||||
UIManager.getViewManagerConfig(ComponentName) != null
|
||||
UIManager.hasViewManagerConfig(ComponentName) != null
|
||||
? VideoViewNativeComponent
|
||||
: () => {
|
||||
throw new Error(LINKING_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user