2016-10-02 5 views

Antwort

18

konnte ich dieses Problem beheben, indem zu MainApplication.java Zugabe:

import com.facebook.react.modules.i18nmanager.I18nUtil; 

public class MainApplication extends Application implements ReactApplication { 
    @Override 
    public void onCreate() { 
     super.onCreate(); 

     // FORCE LTR 
     I18nUtil sharedI18nUtilInstance = I18nUtil.getInstance(); 
     sharedI18nUtilInstance.allowRTL(getApplicationContext(), false); 
     .... 
    } 
} 
+0

Hinzufügen zu welcher Datei? – grmmph

+1

in MainApplication.java Datei – atlanteh

+0

Das funktioniert super! ... (das Setzen von supportsRtl = "false" im Manifest hat nichts für mich bewirkt). –

2

In manifest.xml Datei hinzufügen android:supportsRtl="false" Ihre Anwendung Tag

+0

Ja, diese Antwort und auch die obige (allowRTL-false) haben die Magie gemacht. –