-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
useAnimatedKeyboard fixes (iOS) (#6755)
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary fix: return correct height for detached keyboard on iOS (fixes #5584, #6440) fix: don't clobber keyboard height when keyboard did not animate on iOS fix: convert keyboard position to window coordinate space on iOS (Stage Manager compatibility) fix: don't prematurely update keyboard height during dismissal on iOS fix: don't jump to height when iOS keyboard is rapidly opened/closed (fixes #6727) fix: correct height when keyboard opened from shortcuts bar on iOS ## Test plan Can be tested with the useAnimatedKeyboard example. 1. Enable iPad for the example project. 2. Launch the useAnimatedKeyboard example. 3. Open the keyboard, then undock or float the keyboard. The view should not transform when undocked or floating. 4. Dock the keyboard 5. Hide the keyboard, note that the view should now be transformed by the keyboard height 6. Enable Reduce Motion in Accessibility, and Prefers Cross-Fade Transitions 7. Open the keyboard, note that he transform should work as expected
- Loading branch information
Showing
1 changed file
with
91 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters