Skip to content

Commit

Permalink
Don't reconstruct app component on split-screen (#32536)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Somena1 authored and facebook-github-bot committed Nov 5, 2021
1 parent 88ebec9 commit fc962c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
Expand Down

0 comments on commit fc962c9

Please sign in to comment.