Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios landscape mode support #63

Open
Leeselbin opened this issue May 10, 2023 · 0 comments
Open

ios landscape mode support #63

Leeselbin opened this issue May 10, 2023 · 0 comments

Comments

@Leeselbin
Copy link

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
        />


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant