Skip to content

Commit 88a79b3

Browse files
Matej Strasekfacebook-github-bot
authored andcommitted
Updating blog post about RTL from setAllowRTL to allowRTL (Android).
Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> Updating blog post about RTL to use updated function `sharedI18nUtilInstance.allowRTL` for Android as mentioned in [this issue](#16166) Check [this blog post](https://facebook.github.io/react-native/blog/2016/08/19/right-to-left-support-for-react-native-apps.html). Closes #16184 Differential Revision: D5987016 Pulled By: hramos fbshipit-source-id: 96eb066e0326a550e84d290dc1397fdc2ca5c4f4
1 parent e87904c commit 88a79b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

blog/2016-08-19-right-to-left-support-for-react-native-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ With this update, when you allow RTL layout for your app:
5757
```java
5858
// in MainActivity.java
5959
I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();
60-
sharedI18nUtilInstance.setAllowRTL(context, true);
60+
sharedI18nUtilInstance.allowRTL(context, true);
6161
```
6262

6363
3. For Android, you need add `android:supportsRtl="true"` to the [`<application>`](http://developer.android.com/guide/topics/manifest/application-element.html) element in `AndroidManifest.xml` file.

0 commit comments

Comments
 (0)