charliesbot / react-native-media-controls

A sweet UI component to manipulate your media. Strongly typed.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

who has the idea to make fullscreen mode?

tpcbank opened this issue · comments

hi everyone I want to help, I want to make fullscreen mode. who has the idea to make fullscreen mode?

my code :

<Video
onEnd={onEnd}
onLoad={onLoad}
onLoadStart={onLoadStart}
posterResizeMode={'cover'}
onProgress={onProgress}
paused={paused}
ref={ref => (videoPlayer.current = ref)}
resizeMode={'cover'}
source={Test}
style={styles.backgroundVideo}
/>
<MediaControls
isFullScreen={true}
duration={duration}
isLoading={isLoading}
progress={currentTime}
onPaused={onPaused}
onReplay={onReplay}
onSeek={onSeek}
onSeeking={onSeeking}
mainColor={'red'}
onFullScreen={onFullScreen}
playerState={playerState}
sliderStyle={{containerStyle: {}, thumbStyle: {}, trackStyle: {}}}
/>

const onFullScreen = () => {
 
 // What should I put in it?

};

@charliesbot