-
Notifications
You must be signed in to change notification settings - Fork 16
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
Popup sizes doesnt reflect current device width #26
Comments
Hi, to help us better understand the issue you're experiencing with the popup not adjusting properly in portrait mode, could you please provide a screenshot or a short video? This would help clarify the behavior and make it easier for us to troubleshoot the problem accurately. Thanks! |
We may have resolved your issue with this commit, but we’d appreciate it if you could install and test it before the update is released. |
@sekizlipenguen thanks for the fix! i'll use patch-package to apply the fix and try it out first.
|
Yes, you're right, and that's why I've made some updates for improvement. You can check it out at the link below:
|
hi @sekizlipenguen i've tried above code but i still couldn't solve the issue. i still facing the same overflow pop up, causing the bottom view on my app not press-able. i've attached image here for ur reference I've tried applying |
@sekizlipenguen Sorry i couldn't share original image due to company content. I've updated less blurry image here. But lemme clarify. Flow:
But popup is shown using the width from horizontal view. Hence the below screenshot image. The popup is stretched horizontally and overflow on the right. You can see the popup size from its black overlay. Hope you understand better now: Red box - popup component |
I suggest running Orientation.lockToPortrait(); within app.js, as it may resolve the issue on the Android side; it seems Android is having trouble detecting the orientation correctly. import Orientation from 'react-native-orientation-locker'; https://www.npmjs.com/package/react-native-orientation-locker |
Unfortunately that didn't work either. |
For your context, my app was forced to portrait orientation with
android:screenOrientation="portrait"
.If user first launch the app from horizontal orientation phone system, the popup size is taking the horizontal orientation as device width despite my app is in portrait orientation.
Below is my usage:
The text was updated successfully, but these errors were encountered: