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

Full screen Landscape issue #35

Open
eramudeep opened this issue Nov 8, 2022 · 0 comments
Open

Full screen Landscape issue #35

eramudeep opened this issue Nov 8, 2022 · 0 comments

Comments

@eramudeep
Copy link

Hi This library is awesome,
The only problem is i am not able to turn player into the full screen. when i am clicking on full-screen icon..
the screen is not rotating to Landscape.
even tried manually

Here is what i tried so far

const onEnterFullscreen =async () => {
        if (Platform.OS === "android") {
            RNOrientation.lockToLandscape()
        } else {
            //Orientation.lockToLandscapeRight()

            await  Orientation.lockToLandscape(); 

        }

    }
    const onExitFullscreen = () => {
        if (Platform.OS === "android") {
            RNOrientation.lockToPortrait();
            RNOrientation.unlockAllOrientations()
        } else {
            Orientation.lockToPortrait();
            Orientation.unlockAllOrientations()
        }

    }
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