Skip to content

iOS: KeyboardChatScrollView doesn't restore position after dismissing photo picker with Cancel button #1610

Description

@auralonglife

Description

Chat screen uses KeyboardChatScrollView with FlatList (inverted) and KeyboardStickyView.

When user opens photo library (PHPicker) and dismisses it via Cancel button, the keyboard reappears but the scroll content stays shifted down. Input and keyboard are in correct position, but messages list does not follow.

If user dismisses photo library by swipe down instead of Cancel button — everything works correctly.

If user selects a photo — everything also works, because input height changes and layout recalculates.

Logs

Cancel button:

keyboardDidHide
keyboardDidShow 345
keyboardDidShow 345

Swipe down:

keyboardDidHide
keyboardDidShow 345
keyboardDidHide
keyboardDidShow 345
keyboardDidShow 345

Env

  • react-native-keyboard-controller: 1.22.3
  • React Native: 0.81.5
  • Platform: iOS
  • New Architecture: yes

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions