I have created a simple chat application with react-native
, it looks very nice when the device language
is left to right
, but on devices with RTL
(right to left) Language it looks very bad and layout is not responsive.
So how Can I forcefully keep
it as LTR(left to right)
even on devices with RTL languages
like persian, arabic, dari, pashto, urdo
..
There is a way that you could just disable the setting.
import { I18nManager} from 'react-native';
I18nManager.allowRTL(false);
export default class Example extends Component {
...
}