UNPKG

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

Version:

Production-ready React Native OTT video player library for Android & iOS. Features: playlists, seasons, auto-next playback, subtitles (SRT/VTT), custom theming, analytics tracking, fullscreen mode, gesture controls, ads player (pre-roll/mid-roll/post-roll

11 lines (7 loc) 367 B
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 };