-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[RNMobile] Scroll header toolbar to end when RTL #34617
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
Conversation
|
Size Change: +626 B (0%) Total Size: 1.05 MB
ℹ️ View Unchanged
|
SiobhyB
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢 🚀
I tested this on an Android emulator and confirmed the changes fix the issue. 🎉 I also created an installable build for iOS (as I was having trouble seeing the RTL change on the iOS emulator) and confirmed there are no unwanted side effects on iOS when testing with a physical iPhone XR.
I'm curious why this worked as expected on iOS both with and without this change. Is there a known reason I'm missing or perhaps a quirk with the way ScrollView works? Either way, the change looks good to my eyes and I've approved it. :D
|
Thanks for the review @SiobhyB and for preparing an installable build of WPiOS!
Good point! When I tested using a physical iPhone against Metro it looked indeed that the changes here work, but your note now prompted me to check deeper. Do you mind if I also update your test WPiOS PR alongside? |
Ah, really interesting! Thank you for digging deeper and sharing that. I'll read through and bear in mind for the future.
Not at all, feel welcome to update the PR in any way. |
|
👋 @SiobhyB ! Ready for another review! I updated all the branches, included the commit to only apply the fix to Android and have triggered an installable build for iOS. Thanks! |
SiobhyB
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I tested again on the Android demo app and with the iOS installable build. All worked smoothly in my testing 🎉 🚀
I left a question and one suggestion for the CHANGELOG, approving this PR as neither of those are blockers and this looks good!
Description
Fixes the initial horizontal positioning of the main header toolbar when RTL.
Related PRs
How has this been tested?
Using the gb-mobile PR
Screenshots
toolbar-scrolling-to-inserter-icon-when-rtl.mp4
Types of changes
HeaderToolbaris executing ascrollToStartfunction when the content size changes, attempting to always make sure the inserter button gets visible. This PR updates thescrollToStartto respect the RTL setting.Checklist:
*.native.jsfiles for terms that need renaming or removal).