-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove wrapper view from KeyboardAwareScrollView
#321
Merged
Conversation
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
kirillzyusko
added
🐛 bug
Something isn't working
📚 components
Anything related to the exported components of this library
labels
Jan 8, 2024
📊 Package size report
|
I opened an issue for Fabric problem in REA repository: software-mansion/react-native-reanimated#5567 |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
kirillzyusko
added
the
KeyboardAwareScrollView 📜
Anything related to KeyboardAwareScrollView component
label
May 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
🐛 bug
Something isn't working
📚 components
Anything related to the exported components of this library
KeyboardAwareScrollView 📜
Anything related to KeyboardAwareScrollView component
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📜 Description
Removed view wrapper. Attached that view as last child + kept padding for this view.
💡 Motivation and Context
The approach with additional view was added in #257
I don't remember exact reason, but for me it seems like it was added, because TExtInputs were not able to grow. However such approach is causing additional issues:
Animated
-based style to REA view)So in this PR I'm removing this view wrapper and apply additional padding in mostly the same way as it was before #257 (additional child-view in the end of ScrollView, but instead of
height
I'm animatingpaddingBottom
).I've tested and it still works (i. e. inputs are growing). E2E tests also passing (so there seems to be 1px difference, which can be neglected, but i had to update assets to assure E2E tests consistency).
Important
This fix will introduce software-mansion/react-native-reanimated#5567. I've added that issue as "known issue" in docs page.
I think it's better to have properly working paper architecture and Fabric can be fixed later (because it's still in early adoption and is not widely used).
Closes #325
📢 Changelog
E2E
detox-clean
command (useful when you updated XCode version and haven't run detox tests yet)JS
🤔 How Has This Been Tested?
Tested on:
📸 Screenshots (if appropriate):
There is no visual difference 🙂
📝 Checklist