Sunday 23 August 2020

React Native App LTR to RTL change without restarting the app

Currently I am using I18nManager for changing LTR to RTL, But its working only after restarting the app, My code is given below

 import {I18nManager} from 'react-native';
 import RNRestart from 'react-native-restart';

changeLtrToRtl=()=>{
    I18nManager.forceRTL(true);
    RNRestart.Restart();
}

Is there some other method for implementing LTR to RTL change without restarting the app?



from React Native App LTR to RTL change without restarting the app

No comments:

Post a Comment