-
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
[HOLD for payment 2022-03-17] App changes positions of Ui elements when phone language RTL - Reported by Ahmed sherif #7476
Comments
Triggered auto assignment to @stephanieelliott ( |
Triggered auto assignment to @TomatoToaster ( |
Triggered auto assignment to @kevinksullivan ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @marcaaron ( |
That's the simple styling problem that we can sort out with the help of flexbox properties. I can resolve these issues and will be happy to give you support for maintaining your application front-end and backend. Please let me know if you have some more questions in mind. We can arrange a call to discuss it further. |
I don't think we are ready to add RTL support ATM. let me discuss this and get back. ✋ |
I will be using react-native-i18n library to resolve the RTL layout issue. This library will check for RTL/ LTR language and returns boolean which we will use to render UI smoothly. I have already worked over this issue before on a website. You can check here. The above website also has mobile apps (Android & iOS), however, they are not live. I have the source code for it on my repository. |
@parasharrajat I think all we need is to force the app to work LTR since we only support LTR will add this I18nManager.allowRTL(false);
I18nManager.forceRTL(false);
I18nManager.swapLeftAndRightInRTL(false); and will need to add more steps on android native. I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();
sharedI18nUtilInstance.allowRTL(getApplicationContext(), false); |
So based on the discussion, we would like to block the RTL mode for the time being until we wish to support RTL. Please submit updated proposals. @ahmdshrif Where did |
It come from React-native . Ok i will update it |
https://reactnative.dev/blog/2016/08/19/right-to-left-support-for-react-native-apps React native have this blog post to support rtl . And we use the same to not support rtl . I see here he add the native config to support rtl. So i will add it also may be will need this config on some android or ios versions. (It work fine with me without need to them) So adding this for android in MainActivity.java I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();
sharedI18nUtilInstance.allowRTL(context, false); In AndroidManifest.xml And adding android:supportsRtl="false" And for ios . // in AppDelegate.m
[[RCTI18nUtil sharedInstance] allowRTL:false]; |
I think we don't need this part after Apart from it, @ahmdshrif 's proposal looks good to me. cc: @marcaaron 🎀 👀 🎀 C+ reviewed |
@parasharrajat can we start pr here? |
📣 @ahmdshrif You have been assigned to this job by @marcaaron! |
@ahmdshrif @parasharrajat can we get a status update here? |
PR is in progress.. Updates are being made. |
This is in review now and close to merge. |
Just leaving a comment here to let everyone know there is a second PR related to this issue -> #7922 (comment) |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.41-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-03-17. 🎊 |
Hi @kevinksullivan i think this should be pay now . |
Hi @ahmdshrif sorry I missed this and thanks for the reminder. The total payment should be $250, not $500, correct? I see you requested $500 and want to be sure I'm giving you the right amount. @parasharrajat can you accept the hire for C+ ? |
@kevinksullivan no problem.. i request 500 because i report and fix this issue . |
All set. Thanks @ahmdshrif @parasharrajat ! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App UI should be properly displayed
Actual Result:
UI is distorted, some elements overlap
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:
Where is this issue occurring?
Version Number: 1.1.33-0
![Screenshot_٢٠٢٢٠١٢٤-١٨٣٦٥٠_New Expensify](https://user-images.githubusercontent.com/43995119/151739947-5ff5431b-385c-4091-9dae-811c83b8877a.jpg)
![Screenshot_٢٠٢٢٠١٢٤-١٨٣٥٤٨_New Expensify](https://user-images.githubusercontent.com/43995119/151739956-aa51e03a-663b-47e9-87da-f0091f79388d.jpg)
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: Ahmed sherif
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1643042672341700
Upwork Job https://www.upwork.com/jobs/~019ba4918a8529eaf2
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: