-
Notifications
You must be signed in to change notification settings - Fork 3k
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: App changes positions of Ui elements when phone language RTL #7594
Conversation
ios have an issue with force LTR which is text does not align to left |
Could you please share your research on this? I would like to know more about this before accepting You have missed Mobile Web screenshots. Please add them. |
@parasharrajat let me know when you are ready to approve the PR and I will jump in. |
@parasharrajat Ok i add screen for mobile web . i share many resources in issue any one of them work fine in android . I do some search on this issue and i find that i can go with 3 directions 1_ using js and react native libs (i share this in proposal) 2- using react native liberary from objectC 3- i search on how native do this (without react ) [[UIView appearance] setSemanticContentAttribute:UISemanticContentAttributeForceLeftToRight]; "Changing to right to left RTL programmatically - Stack Overflow" https://stackoverflow.com/questions/35151038/changing-to-right-to-left-rtl-programmatically "iOS9 - Force left to right | Apple Developer Forums" https://developer.apple.com/forums/thread/9130 So i add the default text alignment to left |
Did you try |
Yes sure . |
I find this issue on ios it looklike what we have now . |
So you mean this does not work against the alignment issue. If yes, I will test the code now to see if alignment is correct everywhere. |
Yes |
Testing shortly. on my list 2/5. |
Didn't get time to test it on all platforms today. I will do this first thing in the morning. |
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.
Please add proper QA steps for all possible platforms. They should indicate how to switch to RTL on the device.
Also, Is it safe to switch RTL? I don't know Arabic so it could be difficult for me to navigate the device to switch back to English.
src/components/TextInput/TextInputLabel/TextInputLabelPropTypes.js
Outdated
Show resolved
Hide resolved
I can help if you need to switch back to English . but the easy way is to test on Emulator and you can wipe data if you can't switch back. |
we can test this on a call if you need help with Arabic. |
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.
I think you missed a couple of comments from previous review. Try to go through them again.
src/components/TextInput/TextInputLabel/TextInputLabelPropTypes.js
Outdated
Show resolved
Hide resolved
1af91c7
to
18b2a93
Compare
done all changes . |
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.
The code looks good. But there are a few more places to be updated.
@ahmdshrif Could you please run a full check on the IOS app to see if everything is correctly aligned? Please record the video and attach it to the description only for IOS.
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.
Few more tweaks.
Co-authored-by: Rajat Parashar <parasharrajat@users.noreply.github.com>
@parasharrajat ok done |
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.
Testing again...
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.
@ahmdshrif It looks good. The only things are :
Update QA steps to reflect that:
- Keep the Keyboard language to English. Arabic is not supported.
- Test on Both Android and IOS.
@parasharrajat ok done. |
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.
src/components/BaseInput/index.js
Outdated
forwardedRef: () => {}, | ||
}; | ||
|
||
const BaseInput = props => ( |
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.
Ah, sorry I hate to do this, but BaseInput
is a pretty generic name and BaseTextInput
is already taken... can we call this RNTextInput.js
instead?
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.
ok done. thanks .
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.
Thanks for your patience here 🙇
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.
thanks. 😃
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @marcaaron in version: 1.1.41-0 🚀
|
🚀 Deployed to staging by @marcaaron in version: 1.1.41-0 🚀
|
Team is having a bit hard time validating this PR on Desktop as it requires device language change and introducing navigation issues to flip language back as options shift. |
#7922 (comment) same suggestion here. |
Hi @mvtglobally, were you able to test with the suggestion here? |
@francoisl yes, checked off both PRs |
🚀 Deployed to production by @francoisl in version: 1.1.41-6 🚀
|
|
@parasharrajat the fix only adds the |
Details
Fixed Issues
$ #7476
Tests
QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
55b-d8534034caed.png)
Screen.Recording.2022-02-13.at.3.42.50.PM.mov
Android