-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[New Arch] RTL to LTR of vise versa Layout Direction Change Requires App Termination to Apply #48311
Comments
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
Moved to RN repo since this is implementation issue with RN iOS New arch instead of Yoga layer. |
@NickGerleman unfortunately the RN issue is locked and I don't think there is any plans to fix this issue any time soon. I thought there might be an issue with how yoga handles RTL & LTR with the new arch.. |
Any update on this? |
Any update? |
@blakef are there any plans to fix this issue ? most apps are moving to the new arch, we're unable to because of this issue unfortunately. we'd appreciate if you could share some updates. |
AFAIK there isn't work planned to fix this. PRs are always welcome. Cc @cipolleschi, might know more. |
With libraries targeting only the new arch, eg: reanimated v4, unistyles v3 & shadowlist, I think this is very essential to fix.
|
Is this issue addressed in latest version? 0.77 |
No, it isn't. |
Description
When toggling RTL layout direction dynamically using I18nManager.forceRTL(true) or switching between languages in the system settings, the Yoga layout engine does not immediately apply the updated layout direction. Even with a forced app restart (e.g., via RNRestart), the changes are not respected.
A complete termination and relaunch of the app is required for the changes to take effect. This creates significant friction for users and developers aiming to support dynamic language and layout changes for right-to-left (RTL) languages.
Report
Issues and Steps to Reproduce
Toggle RTL programmatically:
Alternatively, change the device language to an RTL language (e.g., Arabic ) in the app settings. ( assuming you added such functionality )
Observe that the layout direction does not change immediately.
Terminate the app completely and relaunch it manually. Only then does the layout respect the RTL direction.
Expected Behavior
the layout direction should change.
Actual Behavior
the layout direction does not change.
related react-native Issue
The text was updated successfully, but these errors were encountered: