Repository navigation
Conversation
|
Warning JavaScript API change detected This PR commits an update to
This change was flagged as: |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Part 3 of 3 of the
I18nManagerrework (RFC, split from #59404). Depends on #60458 and #60459, review the last commit only.forceRTLapplies at runtime: surfaces lay out again andisRTLupdates immediately (bridgeless only). The value is no longer persisted.forceRTLnow returns the newisRTL. JS updatesisRTLonly when it gets a boolean, so an older binary keeps the old behavior (applied on the next reload).This comes after the swap removal because the swap mutates props and cannot be undone, so toggling at runtime would leave views swapped.
Changelog:
[GENERAL] [BREAKING] - Apply
I18nManager.forceRTLat runtime and stop persisting its value[ANDROID] [BREAKING] - Remove the
Contextparameter fromI18nUtil.forceRTLTest Plan:
Flow, Jest (
I18nManager-test.js), the generated TypeScript and C++ API snapshots, and the format checks pass. RNTester's RTL example togglesforceRTLwithout a reload:RTL.-.Android.mp4
RTL.-.iOS.mp4