fix: disabling KeyboardAwareScrollView didn't prevent useAnimatedStyle flickering#921
fix: disabling KeyboardAwareScrollView didn't prevent useAnimatedStyle flickering#921kirillzyusko merged 1 commit intokirillzyusko:mainfrom High5Apps:main
Conversation
📊 Package size report
|
|
Thank you @High5Apps for such a detailed description ❤️ Changes look good for me, but it's 1 AM in my timezone - I approved PR to run CI and see if e2e tests pass or not (they should I believe, I don't see anything criminal in your changes). Tomorrow I'll check again all attached references, to make sure I understood the problem and I think I'll merge it. Thank you again for your PR and your time 🙏 |
|
No problem, Kirill! Thanks for all of your great work on this library. And no need to rush on this- get some sleep haha. I'm already using this with patch-package, so the PR is not a blocker for me. Just let me know if you need me to clarify anything or make changes, and I'll get to it some time tomorrow. Thanks, |
|
Looks good! Thank you for your contribution @High5Apps ❤️ 🙌 |
- 1.17.1 includes the patch for the PR I submitted during the RN79 upgrade, so remove the unneeded patch - https://github.com/kirillzyusko/react-native-keyboard-controller/releases/tag/1.17.1 - kirillzyusko/react-native-keyboard-controller#921 - kirillzyusko/react-native-keyboard-controller@9011a90 - It seems like Podfile.lock contains react-native-pager-view@6.7.1 changes that really should have been included in the RN79 update commit - 0cbdfa7
📜 Description
Reanimated.ViewfromKeyboardAwareScrollViewwhen it's not enabled💡 Motivation and Context
useAnimatedStylevalues get out-of-sync with their underlying react native Fabric style values.useAnimatedStyleKeyboardStickyViewusing plain Animated #898KeyboardAwareScrollViewand then navigating to a new screen causes flickering in the second screen (see repro video below)useAnimatedStylereact-navigation/react-navigation#12410enabledbased on whether the first screen was focused or not (using react navigation'suseIsFocusedhook) would work around the issue, but it didn'tenabled={isFocused}change mentioned above, fixed things (see no-repro video below)react-native-keyboard-controller@1.17.0(current latest)📢 Changelog
JS
Reanimated.ViewfromKeyboardAwareScrollViewwhen it's not enablediOS
Android
🤔 How Has This Been Tested?
📸 Screenshots (if appropriate):
Repro (without this PR)
repro.mp4
No-repro (with this PR)
no-repro.mp4
📝 Checklist