Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LTR in RTL Devices in react native

New Question

My App is Left to Right but When Someone with Arabic Phone open my app, all of Styles Gets Right to Left

How Can I make My APP Fix Static Left to Right in all languages?

like image 285
Saeed Heidarizarei Avatar asked Jul 22 '17 12:07

Saeed Heidarizarei


People also ask

Does react native support RTL?

In general, most components are already RTL-ready, for example: Left-to-Right Layout.


2 Answers

You can simply add the following to your app.js or to your firstscreen.js if you are on Expo

import { I18nManager} from 'react-native';
I18nManager.allowRTL(false);

export default class <className> extends Component {



}
like image 69
Ahmed Imam Avatar answered Oct 18 '22 04:10

Ahmed Imam


I Added This: android:supportsRtl="false" in the AndroidManifest.xml and Solved

like image 22
Saeed Heidarizarei Avatar answered Oct 18 '22 03:10

Saeed Heidarizarei