【发布时间】:2017-09-04 10:24:48
【问题描述】:
首先我在 android 上工作并且 RTL 工作良好, 我添加了以下代码:
I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();
sharedI18nUtilInstance.setAllowRTL(context, true);
到 MainActivity.java 和
android:supportsRtl="true"
到 AndroidManifest.xml
在js代码中:
I18nManager.forceRTL(true);
现在的问题是: 我试图在 ios 上设置 rtl 但它不起作用 我加了
// in AppDelegate.m
[[RCTI18nUtil sharedInstance] allowRTL:YES];
和
I18nManager.forceRTL(true);
在js代码中 但所有的文本和 flex 仍然是 ltr ...... 我该怎么办?
【问题讨论】:
-
尝试将
writingDirection设置为rtl, facebook.github.io/react-native/docs/text.html#style -
@Cherniv 不适合我
标签: ios react-native right-to-left