Hend El-Sahli
Hend El-Sahli

Reputation: 6742

I18nManager.forceRtl(false) does not work in android

I want to disable forced-rtl in android device having (rtl-device-language) by calling:

await I18nManager.forceRTL(false);
RNRestart.Restart();

but the same code works when switching device-lang to (LTR-lang)

How can I disable RTL in an android device having (RTL-device-lang) ...

any suggestion ... any help ... anything ... is welcome

Upvotes: 2

Views: 2047

Answers (1)

Meisam Sabaghi
Meisam Sabaghi

Reputation: 826

use this in index.js file :

I18nManager.allowRTL(false);
I18nManager.forceRTL(false);

Upvotes: 4

Related Questions