Direction RTL

0
I am trying to change I18nManager.RTL = true but it is not working in 10.24.2 LTS version. In previous 10.12.0 this same thing is working properly.   import "mx-global"; import { I18nManager } from 'react-native'; import * as RNLocalize from "react-native-localize";   // BEGIN EXTRA CODE // END EXTRA CODE   /** * @param {boolean} isEng * @returns {Promise.<void>} */ export async function JS_LanguageChange(isEng) { // BEGIN USER CODE console.warn("RTL setting is currently " +I18nManager.isRTL) const locales = RNLocalize.getLocales(); let lang =locales[0].languageCode; console.warn("Device language " +lang) const val = !isEng; console.warn("next value " +val) I18nManager.allowRTL(true); I18nManager.forceRTL(true); console.warn("RTL setting is currently2 " +I18nManager.isRTL) // RNRestart.Restart(); // END USER CODE }
asked
0 answers