-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Modal close causes orientation reset #23018
Comments
@tedpaulsen I've just tried this in |
Yes, I just tried it on android as well -- unable to reproduce with |
Hello, Perhaps you will find something with this clue. Regards, |
try setting transparent={true} and see if the issue persists it might require some other changes to work with transparent={true} (setting modal width/height) |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Environment
Description
This issue seems to be similar to #20402, but I'm still having this issue.
I am attempting to reproduce the modal demo as seen here on an iPad. When the orientation of the app is in landscape, the orientation of the app seems to be reset upon closing the modal. When the modal is reopened, it opens in the correct landscape orientation.
Expected Behavior
-> device in landscape orientation
-> modal opens in same landscape orientation
-> upon closing modal, the underlying view should be in the same landscape orientation -- not flipped
Observed Behavior
-> upon closing modal, the underlying view is in a different landscape orientation (flipped)
-> this also occurs if "orientation" is omitted from app.json
Reproducible Demo
A demo is available here. This demo works as expected because it is locked to portrait orientation, to accurately recreate the bug run it locally and make sure the
"orientation"
key inapp.json
is set to"landscape"
or"default"
https://snack.expo.io/BkShXmnf4
Here I have
"orientation": "landscape"
inapp.json
The text was updated successfully, but these errors were encountered: