Skip to content

Commit fc962c9

Browse files
Somena1facebook-github-bot
authored andcommitted
Don't reconstruct app component on split-screen (#32536)
Summary: When switching between split screen or resizing the screen window on Android causes a restart by reconstructing the app components as described on this issue #25040 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Android] [Fixed] - Don't reconstruct app components #25040 Pull Request resolved: #32536 Test Plan: ### How to reproduce - create a new project - build app and install on Android - minimize app and start split screen Expected: - App enters split screen Result: - App restart Same issue can be seen when resizing the split screen window Reviewed By: cortinico Differential Revision: D32175433 Pulled By: yungsters fbshipit-source-id: 93dccaa134074eea260cca61eba2150444fa5688
1 parent 88ebec9 commit fc962c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/android/app/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<activity
1414
android:name=".MainActivity"
1515
android:label="@string/app_name"
16-
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
16+
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
1717
android:launchMode="singleTask"
1818
android:windowSoftInputMode="adjustResize">
1919
<intent-filter>

0 commit comments

Comments
 (0)