首先我曾在Android和RTL做工不錯, 添加以下代碼:陣營原住民 - RTL在IOS
I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();
sharedI18nUtilInstance.setAllowRTL(context, true);
到MainActivity.java 和
android:supportsRtl="true"
到AndroidManifest。 xml
and in the js code:
I18nManager.forceRTL(true);
現在的問題是: 我試圖設置RTL iOS上,但它不工作 我在js代碼 添加
// in AppDelegate.m
[[RCTI18nUtil sharedInstance] allowRTL:YES];
和
I18nManager.forceRTL(true);
,但所有的文字和Flex是仍然ltr ... 我能做什麼?
嘗試設置'writingDirection'到'rtl',http://facebook.github.io/react -native/docs/text.html#style – Cherniv
@Cherniv不爲我工作 – gregory