-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
swiping back with fullScreenSwipeEnabled on iOS 17 will make your keyboard go crazy bananas #1918
Comments
I am using the screens example
hello robot you are mistaken. I have provided a reproduction using the react native screens example repo. You cannot reply to me but maybe I should just clone the repo and link that. let us see |
thank you robot |
Absolutely love the issue title. I've managed to reproduce the issue and confirmed that it does not occur on older iOS versions (is it the same for you?). |
Hey! Thank you for the response! Yeah that is the same for me. All is well on ios 16 and earlier. So I did some more investigating and it seems like it's actually happening anywhere one uses a -(void)handleSwipe {
switch (gestureRecognizer.state) {
case UIGestureRecognizerStateBegan: {
// On iOS 17 the keyboard goes nuts when you drive a dismiss animation with UIPercentDrivenInteractiveTransition
if (@available(iOS 17, *)) {
[[UIApplication sharedApplication] sendAction:@selector(resignFirstResponder) to:nil from:nil forEvent:nil];
}
_interactionController = [UIPercentDrivenInteractiveTransition new];
[_controller popViewControllerAnimated:YES];
break;
} It would be more ideal to do the dismissal in one of the UINavigationControllerDelegate methods (specifically I haven't tried using something custom that conforms to Anyway! I think software mansion is really cool and every time I poke around in your code I come away impressed. Really appreciate the work you all do. |
This issue is reproducible on native iOS application. I got some intel that it will be most likely fixed with next patch release for iOS. Closing the issue here, as it seems that it is not caused by |
Description
If you use the
fullScreenSwipeEnabled
screen option on a device/simulator running iOS 17 and then swipe 'back' while the keyboard is up, then your keyboard will be translated vertically in an unexpected (if also funny) way.Although the provided reproduction is on a simulator running the example project on iOS 17, I can also reproduced this in a production app running on a device with iOS 17.
crazy.for.cuckoo.puffs.mov
Steps to reproduce
observe the keyboard become vertically translated by an amount that looks kind of like 'height of the keyboard' * 'normalized horizontal swipe distance'
Snack or a link to a repository
https://github.com/adgarcia/react-native-screens
Screens version
3.25.0
React Native version
0.72.4
Platforms
iOS
JavaScript runtime
None
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
None
Device model
Any iPhone running iOS 17
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: