-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I handle split-screen mode on Android? #4944
Comments
Hey @mileskrell - is this on all Android devices? Does the behavior still happen on simulators? |
@cruzach - I'm totally new to both React Native and Expo, and since opening this issue I've realized that a lack of good support for Android's configuration changes is just an issue with React Native more generally - it's not specific to Expo. So this probably wasn't the right place for me to open this issue. But yes, I'm seeing this behavior on Appetize previews at https://snack.expo.io, as well as at least one other emulator (Pixel 2, API 27) and one physical device (Moto G6, API 26). |
@cruzach I am seeing the same issue. I thought it might only be in the Expo client app, so I tried installing a standalone apk build on an emulator. App restarts as soon as you put it in split-screen. All previous state is lost. Notes:
|
@christianjuth have you tried a bare RN app? as Miles pointed out, this may not be an issue specific to Expo |
The answer to handling this situation properly is provided here. To make those changes to |
When running an app on Android in the Expo client app, if I put the app into split-screen mode, it restarts.
How can I keep this from happening?
The text was updated successfully, but these errors were encountered: