bitmovin-player-react-native
Advanced tools
Comparing version 0.24.0 to 0.25.0
@@ -291,2 +291,3 @@ "use strict"; | ||
function PlayerView({ | ||
viewRef, | ||
style, | ||
@@ -305,3 +306,3 @@ player, | ||
}, [player]); | ||
const nativeView = (0, import_react2.useRef)(null); | ||
const nativeView = (0, import_react2.useRef)(viewRef?.current || null); | ||
const proxy = useProxy(nativeView); | ||
@@ -371,2 +372,7 @@ const nativeViewStyle = import_react_native7.StyleSheet.flatten([styles.baseStyle, style]); | ||
}, [isPictureInPictureRequested, nativeView]); | ||
(0, import_react2.useEffect)(() => { | ||
if (viewRef) { | ||
viewRef.current = nativeView.current; | ||
} | ||
}, [viewRef, nativeView]); | ||
return /* @__PURE__ */ import_react2.default.createElement( | ||
@@ -373,0 +379,0 @@ NativePlayerView, |
{ | ||
"name": "bitmovin-player-react-native", | ||
"version": "0.24.0", | ||
"version": "0.25.0", | ||
"description": "Official React Native bindings for Bitmovin's mobile Player SDKs.", | ||
@@ -56,4 +56,7 @@ "main": "lib/index.js", | ||
"license": "MIT", | ||
"homepage": "https://github.com/bitmovin/bitmovin-player-react-native", | ||
"repository": "https://github.com/bitmovin/bitmovin-player-react-native", | ||
"homepage": "https://bitmovin.com/video-player/react-native-sdk", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/bitmovin/bitmovin-player-react-native" | ||
}, | ||
"devDependencies": { | ||
@@ -60,0 +63,0 @@ "@babel/core": "7.22.10", |
@@ -39,2 +39,3 @@ import { PlayerViewEvents } from './events'; | ||
export interface PlayerViewProps extends BasePlayerViewProps, PlayerViewEvents { | ||
viewRef?: React.MutableRefObject<null>; | ||
/** | ||
@@ -41,0 +42,0 @@ * {@link Player} instance (generally returned from {@link usePlayer} hook) that will control |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
913788
12327
0