Skip to content

fix: disabling KeyboardAwareScrollView didn't prevent useAnimatedStyle flickering#921

Merged
kirillzyusko merged 1 commit intokirillzyusko:mainfrom
High5Apps:main
Apr 17, 2025
Merged

fix: disabling KeyboardAwareScrollView didn't prevent useAnimatedStyle flickering#921
kirillzyusko merged 1 commit intokirillzyusko:mainfrom
High5Apps:main

Conversation

@High5Apps
Copy link
Copy Markdown
Contributor

@High5Apps High5Apps commented Apr 16, 2025

📜 Description

  • Completely remove the Reanimated.View from KeyboardAwareScrollView when it's not enabled

💡 Motivation and Context

📢 Changelog

JS

  • Completely remove the Reanimated.View from KeyboardAwareScrollView when it's not enabled

iOS

  • N/A

Android

  • N/A

🤔 How Has This Been Tested?

  • Manually verified that:
    • the same set of repro steps showed the issue mentioned above without this PR change, but did not repro the issue with this PR change
    • keyboard avoidance still works on the screen's initial showing as well as when it's navigated back to
    • nothing breaks when navigating away from the screen while the keyboard is still active

📸 Screenshots (if appropriate):

Repro (without this PR)

repro.mp4

No-repro (with this PR)

no-repro.mp4

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko self-assigned this Apr 16, 2025
@kirillzyusko kirillzyusko added KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component 🐛 bug Something isn't working labels Apr 16, 2025
@github-actions
Copy link
Copy Markdown
Contributor

📊 Package size report

Current size Target Size Difference
176625 bytes 176578 bytes 47 bytes 📈

@kirillzyusko
Copy link
Copy Markdown
Owner

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 🙏

@High5Apps
Copy link
Copy Markdown
Contributor Author

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,
Julian

@kirillzyusko
Copy link
Copy Markdown
Owner

Looks good! Thank you for your contribution @High5Apps ❤️ 🙌

@kirillzyusko kirillzyusko merged commit 9011a90 into kirillzyusko:main Apr 17, 2025
12 checks passed
@kirillzyusko kirillzyusko added the 🏭 fabric Changes specific to new (fabric/jsi) architecture label Apr 17, 2025
High5Apps added a commit to High5Apps/organize-rn that referenced this pull request Apr 24, 2025
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working 🏭 fabric Changes specific to new (fabric/jsi) architecture KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants