automaticallyAdjustKeyboardInsets
Does Not adjust Insets When Keyboard Disappears again
#47731
Labels
API: Keyboard
Needs: Triage 🔍
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
When using
automaticallyAdjustKeyboardInsets={true}
in the new architecture, the insets are not adjusted properly. Initially, the content is pushed above the keyboard if needed when it first appears, but the insets are not removed when the keyboard disappears. This leads to theScrollView
being permanently misaligned.Steps to reproduce
bun i
RCT_NEW_ARCH_ENABLED=1 pod install
(you can install with or without fabric enabled to compare behaviors)cd ..
and runbun ios
React Native Version
0.76.2
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/MaxTheTurtle0/adjustKeyboardInset-newArch
Screenshots and Videos
New Arch (with Bug - keyboard insets don't get adjusted again when it disappears)
Simulator.Screen.Recording.-.iPhone.15.-.2024-11-19.at.21.10.07.mp4
Without New Arch (everything works fine - the keyboard insets get adjusted again when it disappears)
Simulator.Screen.Recording.-.iPhone.15.-.2024-11-19.at.21.30.36.mp4
The text was updated successfully, but these errors were encountered: