-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
automaticallyAdjustKeyboardInsets not shifting scrollview content #46595
Comments
I tried different expo versions in the snack and it works as expected on v49
|
This works as expected if there are only a few items and moving the list doesn't push any of them out of view. Screen.Recording.2024-09-25.at.1.28.02.PM.movMaybe it's trying to keep items in view as shown here: #37766, but as described in the PR, I'd expect that to only occur for focused inputs rather than any component. It states "The proposal doesn't change the behavior of the ScrollView offset when an InputAccessory view is used, since it checks if the TextField that triggered the keyboard is a descendant of the ScrollView or not." |
PR #46732 tried to fix it. |
Any updates on getting this merged? |
…6732) Summary: Fixes #46595 . It seems #37766 broke the `automaticallyAdjustKeyboardInsets` when input accessory view become first responder. [IOS] [FIXED] - automaticallyAdjustKeyboardInsets not shifting scrollview content Pull Request resolved: #46732 Test Plan: Repro please see in ##46595 . Reviewed By: cipolleschi Differential Revision: D65072478 Pulled By: javache fbshipit-source-id: 7d5d7566438d4bb0e1d50074a953b18866e324d3
Description
Looking at the explanation and examples of
automaticallyAdjustKeyboardInsets
here: #31402, I'd expect scrollview content to shift upwards when focusing an input inInputAccessoryView
, but it doesn't. Instead the keyboard covers the bottom portion of the content and you need to manually scroll back up.Steps to reproduce
React Native Version
0.75.3
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@acdifran/interactive-keyboard
Screenshots and Videos
Screen.Recording.2024-09-23.at.8.12.39.AM.mov
Screen.Recording.2024-09-23.at.12.50.24.AM.mov
The text was updated successfully, but these errors were encountered: