RTL Layout Direction does not Work after the application is reloaded/Restarted in IOS updated React Native architecture #47583
Labels
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Resolution: Duplicate
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
Issue Description:
When leveraging the I18nManager module to switch between Right-to-Left (RTL) and Left-to-Right (LTR) layout directions, the UI does not immediately reflect these changes upon app reload, though animations are correctly updated. This behavior is specific to the new React Native architecture, where the layout direction and related styles (e.g., text-align: right) are only properly applied after a full restart of the application, rather than on reload or with the react-native-restart method.
Steps to reproduce
React Native Version
0.76.1
Affected Platforms
Runtime - iOS
Areas
Other (please specify)
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/bhojaniasgar/RTLIssue
Screenshots and Videos
Simulator.Screen.Recording.-.iPhone.16.-.2024-11-11.at.12.13.21.mp4
The text was updated successfully, but these errors were encountered: