I am trying to change I18nManager.RTL = true but this is not working in 11.6.2 but this is working in 9.24.30 (Mendix Native App)Anyone has idea how to do that in latest version.// This file was generated by Mendix Studio Pro.//// WARNING: Only the following code will be retained when actions are regenerated:// - the import list// - the code between BEGIN USER CODE and END USER CODE// - the code between BEGIN EXTRA CODE and END EXTRA CODE// Other code you write will be lost the next time you deploy the project.import "mx-global";import { Big } from "big.js";// BEGIN EXTRA CODEimport { I18nManager } from 'react-native';import * as RNLocalize from "react-native-localize";// END EXTRA CODE/** * @param {boolean} isEng * @returns {Promise.<void>} */export async function onChangeLanguageGetSetRTL(isEng) { // BEGIN USER CODE console.error("RTL setting is currently " +I18nManager.isRTL) const locales = RNLocalize.getLocales(); let lang =locales[0].languageCode; console.error("Device language " +lang) console.warn('Locales: ',locales); if(isEng) { I18nManager.forceRTL(false); console.error("RTL setting changed to English " +I18nManager.isRTL) } else { I18nManager.forceRTL(true); console.error("RTL setting changed to Arabic " +I18nManager.isRTL) } // END USER CODE}
asked
Muhammad Raza Khan
1 answers
0
In version 11.6.2, I faced a similar issue. I added android:supportsRtl="true" in the application tag of AndroidManifest.xml, and it resolved the problem for me.