Skip to content

KeyboardAwareScrollView compatibility issue with react-navigation@7+ presentation 'formSheet' #726

Closed
@kimak

Description

@kimak

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:

  1. Open the screen
  2. Click on the TextInput in the middle of the view
  3. 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

Metadata

Metadata

Assignees

Labels

KeyboardAwareScrollView 📜Anything related to KeyboardAwareScrollView component🍎 iOSiOS specific🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions