📜  react-native force rtl on android - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:39.433000             🧑  作者: Mango

代码示例1
//MainApplication.java
import com.facebook.react.modules.i18nmanager.I18nUtil;

//add this code to the onCreate method 
I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance();
sharedI18nUtilInstance.forceRTL(this,true);
sharedI18nUtilInstance.allowRTL(this, true);