Permalink
Browse files

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
  • Loading branch information...
Matej Strasek authored and facebook-github-bot committed Oct 5, 2017
1 parent e87904c commit 88a79b32b7ccf9dc3d2e77c8571f3cc7d9c88844
Showing with 1 addition and 1 deletion.
  1. +1 −1 blog/2016-08-19-right-to-left-support-for-react-native-apps.md
@@ -57,7 +57,7 @@ With this update, when you allow RTL layout for your app:
```java
// in MainActivity.java
I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();
sharedI18nUtilInstance.setAllowRTL(context, true);
sharedI18nUtilInstance.allowRTL(context, true);
```
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 comments on commit 88a79b3

Please sign in to comment.