-
Notifications
You must be signed in to change notification settings - Fork 812
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
Orintentation problems with iOS16 #411
Comments
Up,same issue |
+1 |
I changed to react-native-orientation-locker and it works fine! But now android has a problem: I'm using react-native-video lib. When I change the orientation, or even change something, the video reloads |
|
Hi @minhpham1203 . HEre works perfectly.
The only change I made is that dont exists the enum "LANDASCAPE". I had to set the conditions to "LANDASCAPE_LEFT" and "LANDASCAPE_RIGHT" @minhpham1203 afeter another test, it not works too... =(. We have to ask in the react-native-orientation-locker github It fires the |
Hey guys, here's a PR with a fix for iOS16 orientation :) |
if you are still building with iOS 15 sdk, could try going into [UIViewController attemptRotationToDeviceOrientation]; below every [[UIDevice currentDevice] setValue:[NSNumber numberWithInteger: ... ] forKey:@"orientation"]; that should work on iOS 16 |
The package will be updated? |
any update on this? @gramiro @vinceplusplus @Girum @veerabhadrasajjan |
I think we need to take ownership of this package or use some stable fork since this lib wasn't updated for 5 years. I think it's unlikely it'll be updated in the future |
@codal-mpawar I'm not the owner of the library so I guess we need to do what @kesha-antonov is proposing. As a temporary solution I'm just patching my projects. |
@gramiro it's working locally but it's not working on the release mode. below is patch package. +- (void)dispatchOrientationChangeEvent:(UIDeviceOrientation)orientation {
+}
+#endif
RCT_EXPORT_METHOD(lockToLandscape)
@@ -192,11 +205,7 @@ - (NSString *)getSpecificOrientationStr: (UIDeviceOrientation)orientation {
RCT_EXPORT_METHOD(lockToLandscapeRight)
RCT_EXPORT_METHOD(unlockAllOrientations)
|
can you confirm that is working in real device not in simulator |
@pawansharmaAccolite, yes, it is |
yes same here i made this patch its working fine at local but when i hit on pipeline its not working |
@pawansharmaAccolite if it’s working locally probably you haven’t had the patch applied on the pipeline. you will need to either fork this repo and add the change or use something like https://www.npmjs.com/package/patch-package to check in locally applied patches to your app repo. Also if it’s the fix I mentioned, i think it will only work if you are building with Xcode 14/iOS 15 sdk, so make sure your pipeline is using the same setup |
yes i face same issue in pipeline that's why i asked for help that its really working in real device which have ios 14 or 15 |
@vinceplusplus Can you please share more info because i added with this way and its not working on released mode. |
Pipeline should have the same setup (macOS version (13.1) and xcode (14.2)), then it is working fine locally as well as on real devices. |
Any fixes? |
@codal-mpawar thanks for the fix. FYI, this line causes occasional crashes : Crash: I think it's because I call this function when the app is still initialising. |
do you already have a solution for this? |
hey,guys,i have solved the problem for iOS 16 system,and it work fine in ios 16 system. in Orientation.m i add this code 1.0 2.0
}]; |
@tipaniclayr30 Sorry you didn't tag me, so I didn't see your question. I just added a safeguard:
|
I've added: react-native-orientation-locker
|
Hi! After update to iOS16, some functionallities dont work sometimes. The package will be updated?
The text was updated successfully, but these errors were encountered: