Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flush animation-frame and immediates on keyboard event to follow same…
… flow as other types of events (#4098) ## Summary This diff fixes an issue with animated views not updating when animating along keyboard. This problem regressed after #3970 where we changed the logic of when enqueued callbacks for animation frame and immediates are flushed. The logic has been moved from c++ to js and we added some code to execute animation frame and immediates as a part of event handling process. However, keyboard events have a separate flow of providing event data (we should unify this at some point), and we missed updating it in that place. This PR adds similar logic to [what we use for regular events](https://github.com/software-mansion/react-native-reanimated/blob/535b5d64c0720da3a9a39d99a67e878fe09b5154/src/reanimated2/core.ts#L117) into the code responsible for handling keyboard events. ## Test plan Run animated keyboard example on iOS and Android.
- Loading branch information