Open Leeselbin opened 1 year ago
I'm trying to change to landscape mode in full screen, but I'm forced to change it in Android, but I'm curious about how to change it to landscape mode in iOS.
my code
import Orientation from "react-native-orientation-locker"; const videoCallbacks = { // timeupdate: (data: any) => console.log("timeupdate: ", data), // play: (data: any) => console.log("play: ", data), // pause: (data: any) => , fullscreenchange: (data: any) => setFullscreen(!fullscreen), // ended: (data: any) => console.log("ended: ", data), // controlschange: (data: any) => console.log("controlschange: ", data), }; useEffect(() => { fullscreen ? Orientation.lockToLandscapeLeft() : Orientation.lockToPortrait(); }, [fullscreen]); <Vimeo videoId="videNo" params={`api=0&autoplay=1&controls=1`} handlers={videoCallbacks} overScrollMode="never" allowsInlineMediaPlayback />
I'm trying to change to landscape mode in full screen, but I'm forced to change it in Android, but I'm curious about how to change it to landscape mode in iOS.
my code