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

Orientation is not working in real device which ios 14+ #419

Open
pawansharmaAccolite opened this issue Dec 6, 2022 · 5 comments
Open

Comments

@pawansharmaAccolite
Copy link

pawansharmaAccolite commented Dec 6, 2022

Hello,

Recently i have start facing this issue in ios 14+ that device orientation is not working in ios but working fine in android
i don't received any error for this

already imported orientation.h file in appdelegate and method

  • (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
    return [Orientation getOrientation];
    }

still not able to know why its stopped working

"react-native-orientation": "^3.1.3",
"react": "17.0.1",
"react-native": "0.64.1",

these are the specs please provide some suggestions

also received this error for ios 16

None of the requested orientations are supported by the view controller. Requested: landscapeLeft; Supported: portrait

@poojasolanki9569
Copy link

poojasolanki9569 commented Dec 21, 2022

yes I too facing the same issue, on ios 16, the orientation is not working, Can someone please help?

@codal-mpawar
Copy link

#411 we are still waiting for fixes.

@swaroopaillinda
Copy link

hii @pawansharmaAccolite did you fix the issue i am also facing same problem
please need urgenthelpp

@catmans1
Copy link

catmans1 commented Jul 4, 2023

@swaroopaillinda You can use patch-package to this patch react-native-orientation+3.1.3.patch for hot fix
https://gist.github.com/catmans1/1c980c27e6ac28439a7ec5e1063fd8ef

Store it in the folder patches

in package.json

{
...
"scripts": {
    ...
    "postinstall": "npx patch-package"
  },
...
}

@RyanMan56
Copy link

@swaroopaillinda You can use patch-package to this patch react-native-orientation+3.1.3.patch for hot fix https://gist.github.com/catmans1/1c980c27e6ac28439a7ec5e1063fd8ef

Store it in the folder patches

in package.json

{
...
"scripts": {
    ...
    "postinstall": "npx patch-package"
  },
...
}

This patch seems to work for me

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

6 participants