Skip to content
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

[Breaking change] Remove layout.direction #7032

Open
wants to merge 2 commits into
base: v8
Choose a base branch
from
Open

Conversation

yogevbd
Copy link
Collaborator

@yogevbd yogevbd commented Mar 14, 2021

Breaking change

layout.direction is no longer needed as we can use react-native's I18n to detect the direction.

Examples

Forcing the layout direction:

I18nManager.forceRTL(true);

Syncing the layout direction with the system's direction:

I18nManager.allowRTL(true);

@swabbass
Copy link
Contributor

@yogevbd awesome, we might need to mention in docs/changes that calling

I18nManager.allowRTL(true);

should be the first thing before the app starts.

@swabbass swabbass added this to Waiting For Review in React Native Navigation Oct 4, 2021
@yogevbd yogevbd changed the base branch from master to v8 December 1, 2021 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
React Native Navigation
  
Waiting For Review
Development

Successfully merging this pull request may close these issues.

None yet

2 participants