Answers for "react native rtl for android"

1

react-native force rtl on android

//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);
Posted by: Guest on August-14-2021
2

react native ios rtl

// add this line at the top before #import "AppDelegate.h"
#import <React/RCTI18nUtil.h>

//add this line to the didFinishLaunchingWithOptions method before return YES
  [[RCTI18nUtil sharedInstance] allowRTL:YES];
  [[RCTI18nUtil sharedInstance] forceRTL:YES];
Posted by: Guest on August-14-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language