mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
83a16b16c9
Summary: On Android 10 whole activity is recreated when the user changes system theme. We should prevent it by adding `uiMode` in `android:configChanges` key in the default template. ## Changelog [Android] [Fixed] - Android 10: Prevent activity recreation on theme change Pull Request resolved: https://github.com/facebook/react-native/pull/26413 Test Plan: NOOP Differential Revision: D17342811 Pulled By: cpojer fbshipit-source-id: 2bed9b5f91e1b67451fefe34b02a1129d6c80d15
27 lines
979 B
XML
27 lines
979 B
XML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.helloworld">
|
|
|
|
<uses-permission android:name="android.permission.INTERNET" />
|
|
|
|
<application
|
|
android:name=".MainApplication"
|
|
android:label="@string/app_name"
|
|
android:icon="@mipmap/ic_launcher"
|
|
android:roundIcon="@mipmap/ic_launcher_round"
|
|
android:allowBackup="false"
|
|
android:theme="@style/AppTheme">
|
|
<activity
|
|
android:name=".MainActivity"
|
|
android:label="@string/app_name"
|
|
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
|
|
android:windowSoftInputMode="adjustResize">
|
|
<intent-filter>
|
|
<action android:name="android.intent.action.MAIN" />
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
</intent-filter>
|
|
</activity>
|
|
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
|
|
</application>
|
|
|
|
</manifest>
|