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
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