However I discovered such issue even earlier in https://github.com/kirillzyusko/react-native-keyboard-controller/pull/667 - there I found out that progress can be interrupted (keyboard can start its movement, but then will be interrupted and will be instantly hidden) and onEnd event will be triggered.
Back to the times I fixed a problem by calling maybeScroll in onEnd handler. in this PR I want to do a similar thing - the only difference is that I want to add onEnd event to mapping for Animated/Reanimated values (useKeyboardAnimation/useReanimatedKeyboardAnimation hooks).
š Description
Fixed broken
KeyboardStickyView
position if keyboard dismissing has been interrupted (by showing a native sheet, for example).š” Motivation and Context
This problem was discovered in https://github.com/bluesky-social/social-app/pull/6739
However I discovered such issue even earlier in https://github.com/kirillzyusko/react-native-keyboard-controller/pull/667 - there I found out that progress can be interrupted (keyboard can start its movement, but then will be interrupted and will be instantly hidden) and
onEnd
event will be triggered.Back to the times I fixed a problem by calling
maybeScroll
inonEnd
handler. in this PR I want to do a similar thing - the only difference is that I want to addonEnd
event to mapping for Animated/Reanimated values (useKeyboardAnimation
/useReanimatedKeyboardAnimation
hooks).A proper fix for https://github.com/bluesky-social/social-app/pull/6739
š¢ Changelog
Android
SharedValue
forend
event on Android;Animated.Value
forend
event on iOS;š¤ How Has This Been Tested?
Tested on CI.
š Checklist