Browse Source

Ignore config changes in portrait and landscape activities (#784)

Ignore config changes in portrait and landscape activities
Guy Carmeli 7 years ago
parent
commit
8239e8c698
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      android/app/src/main/AndroidManifest.xml

+ 3
- 1
android/app/src/main/AndroidManifest.xml View File

1
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
1
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
-    package="com.reactnativenavigation">
2
+          package="com.reactnativenavigation">
3
 
3
 
4
     <application>
4
     <application>
5
         <activity android:name=".controllers.NavigationActivity" />
5
         <activity android:name=".controllers.NavigationActivity" />
6
         <activity
6
         <activity
7
             android:name=".controllers.PortraitNavigationActivity"
7
             android:name=".controllers.PortraitNavigationActivity"
8
+            android:configChanges="orientation|screenSize|keyboardHidden"
8
             android:screenOrientation="portrait" />
9
             android:screenOrientation="portrait" />
9
         <activity
10
         <activity
10
             android:name=".controllers.LandscapeNavigationActivity"
11
             android:name=".controllers.LandscapeNavigationActivity"
12
+            android:configChanges="orientation|screenSize|keyboardHidden"
11
             android:screenOrientation="landscape" />
13
             android:screenOrientation="landscape" />
12
         <activity
14
         <activity
13
             android:name="com.facebook.react.devsupport.DevSettingsActivity"
15
             android:name="com.facebook.react.devsupport.DevSettingsActivity"