fix: component linking method (#4601)

This commit is contained in:
Krzysztof Moch
2025-07-13 17:55:43 +02:00
committed by GitHub
parent de8b9cb0cc
commit 5b47cf5b61
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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);