Closed
Description
Describe the bug
react-navigation@7 has introduced formSheet
support recently
react-navigation/react-navigation#12032
By using it it breaks KeyboardAwareScrollView
behavior.
Code snippet
❌ KeyboardAwareScrollView flickering with a TextInput inside the view
<Stack.Group
screenOptions={{
presentation: 'formSheet'
}}>
✅ KeyboardAwareScrollView working fine with a TextInput inside the view
<Stack.Group
screenOptions={{
presentation: 'modal'
}}>
Repo for reproducing
The pbm is easy to reproduce with the latest version of react-navigation but let me know and I can create one if needed.
To Reproduce
Steps to reproduce the behavior:
- Open the screen
- Click on the TextInput in the middle of the view
- The scroll is flickering and the screen is not usable.
Expected behavior
Same behavior as with presentation: 'modal'
.
- Device: iPhone8
- OS: iOS 17.4
- RN version: 0.76.3
- RN architecture: new
- JS engine: Hermes
- Library version: 1.14.5