Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: incorrect
KeyboardStickyView
state when keyboard animation int…
…errupted (#704) ## 📜 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 bluesky-social/social-app#6739 However I discovered such issue even earlier in #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). A proper fix for bluesky-social/social-app#6739 ## 📢 Changelog ### Android - update `SharedValue` for `end` event on Android; - update `Animated.Value` for `end` event on iOS; ## 🤔 How Has This Been Tested? Tested on CI. ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
- Loading branch information