阵营原住民 - RTL在IOS
问题描述:
首先我曾在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