useAnimatedKeyboard does not work for Android when the focused TextInput is inside a Modal #5754
Labels
Platform: Android
This issue is specific to Android
Repro provided
A reproduction with a snippet of code, snack or repo is provided
Description
useAnimatedKeyboard
generally works well, but unfortunately doesn't update on Android when the focusedTextInput
is inside aModal
. This issue has been around for quite a few major releases and I can confirm it is also present in the latest release.Interesting, this issue is also present in
react-native-keyboard-controller
despite them using a different approach to calculating keyboard height (see kirillzyusko/react-native-keyboard-controller#369).Here is a video demonstrating the working behaviour on iOS, followed by the broken behaviour on Android:
https://github.com/software-mansion/react-native-reanimated/assets/5165963/ed37fc4d-7bc3-453c-8d32-5de5847bebee
Steps to reproduce
Put a
TextInput
inside aModal
component. Notice that any uses ofuseAnimatedKeyboard
(both inside theModal
and outside) do not update to reflect the visible keyboard height.Snack or a link to a repository
https://snack.expo.dev/@braden1996/reanimated-useanimatedkeyboard-modal-bug
Reanimated version
3.6.1
React Native version
0.72.4
Platforms
Android
JavaScript runtime
Hermes
Workflow
Expo Dev Client
Architecture
None
Build type
None
Device
Real device
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: