Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

React native - rtl in ios

$
0
0

firstly i worked on android and the RTL working good,i added the following code:

   I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();   sharedI18nUtilInstance.setAllowRTL(context, true);

to MainActivity.javaand

android:supportsRtl="true"

to AndroidManifest.xml

and in the js code:

I18nManager.forceRTL(true);

Now is the problem:i tried to set rtl on ios but its not workingi added

 // in AppDelegate.m   [[RCTI18nUtil sharedInstance] allowRTL:YES];

and

I18nManager.forceRTL(true);

in js codebut all the text and flex are still ltr...what can i do?


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>