Closed kirillzyusko closed 3 months ago
Current size | Target Size | Difference |
---|---|---|
130614 bytes | 130012 bytes | 602 bytes π |
I'm currently experiencing this as well, thank you so much for the fix.
Are these change already on NPM?
@focux no, not yet - but I hope to publish a new version (1.11.5
) in next few hours π
π Description
Schedule layout animations on before keyboard appear/disappear.
π‘ Motivation and Context
Looks like after RN 0.71 the disappear animation happens instantly if user pressed on the
ScrollView
. I don't know what was exactly broken, but I discovered, that if we scheduleLayoutAnimation
withkeyboard
type, then animation happens as it should.So in this PR I decided to schedule layout animations manually and remove them when keyboard finished its movement.
Theoretically it's a little bit dangerous to schedule global animations, but:
So it's kind of relatively safe π
Closes https://github.com/kirillzyusko/react-native-keyboard-controller/issues/307
π’ Changelog
JS
reanimated chat flat list
example to Fabric project;iOS
scheduleKeyboardAnimation
/unscheduleKeyboardAnimation
methods toRCTUIManager
(as extension);onRequestAnimation
/onCancelAnimation
methods toKeyboardMovementObserver
;onRequestAnimation
onkeyboardWill
events andonCancelAnimation
onkeyboardDid
events;π€ How Has This Been Tested?
Tested on iPhone 15 Pro (both paper and fabric).
πΈ Screenshots (if appropriate):
π Checklist