Skip to content

Commit c3eb2b2

Browse files
authored
fix(android): improve default handling of orientation changes (#2208)
Snaps the activity props to what is currently in the [template](https://github.com/react-native-community/template/blob/0.75-stable/template/android/app/src/main/AndroidManifest.xml).
1 parent b04a565 commit c3eb2b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@
2323
>
2424
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
2525

26-
<activity android:name="com.microsoft.reacttestapp.MainActivity" android:exported="true">
26+
<activity
27+
android:name="com.microsoft.reacttestapp.MainActivity"
28+
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
29+
android:windowSoftInputMode="adjustResize"
30+
android:exported="true"
31+
>
2732
<intent-filter>
2833
<action android:name="android.intent.action.MAIN" />
2934
<category android:name="android.intent.category.LAUNCHER" />

0 commit comments

Comments
 (0)