Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Conversation

@yuvalrakavy
Copy link
Contributor

I have fixed an incorrect behavior when react-native is in RTL mode (the interface language is written from right to left, e.g. Hebrew/Arabic).

To easiest way to force react-native into RTL is to put in your index.ios.js file the following:

import {I18nManager} from 'react-native';

I18nManager.forceRTL(true)

This will force react-native into RTL mode even if your language is not RTL. You can see that the drawer will be opened from the right side rather than the left.

If you try it with the original version, you will see that the drawer is rendered in incorrect location since the x translation is incorrect.

@DanielMSchmidt DanielMSchmidt merged commit 4f9be0e into rnc-archive:master Apr 4, 2017
@DanielMSchmidt
Copy link
Collaborator

It is included in 1.3.0. Thank you so much for your help and the explanation!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants