UNPKG

@zezosoft/zezo-ott-react-native-video-player

Version:

React Native OTT Video Player for Android & iOS. Supports playlists, seasons, auto-next playback, subtitles, theming, analytics, fullscreen mode, and custom controls. 🚀 Powered by ZezoSoft.

15 lines (11 loc) • 444 B
/** * @author Naresh Dhamu * @lastModified Thu 14 Aug 2025 at 09:41 AM */ import { Dimensions } from 'react-native'; const { height, width } = Dimensions.get('window'); const setHeight = (h: number) => (height / 100) * h; const setWidth = (w: number) => (width / 100) * w; const fullWidth = Dimensions.get('window').width; const fullHeight = Dimensions.get('window').height; export default { setHeight, setWidth, fullWidth, fullHeight };