-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Additional space added in modal #222
Comments
Hi, this happens on iOS or android? Also which version of the sheet are you using? |
I am using Android, version 0.8.7. |
Did you find a solution?!, I have the same problem with version 0.8.8 using android 11 |
happens to me aswell on android (action sheet v: ^0.8.7) |
just rolled back a few versions. this started to occure on 0.8.4 @ammarahm-ed but sadly i cant remain in those builds since those have issues with react-navigation so a workaround would be appreciated |
also, setting a custom height following seems to mitigate that |
Try v0.8.9 |
It is still happening, less often but still happening |
Have you tried v0.8.10? Also are you testing on emulator or real device? |
I am testing on emulator. |
testing 0.8.10 on an android device and could not reproduce this bug |
I encounter this bug |
@younes0 which version are you on? |
@ammarahm-ed latest: 0.8.17 |
Can you share what your sheet is like?what styles & props you have added etc, so i can reproduce it locally 🤔@younes0 |
@ammarahm-ed I use Expo btw |
@ammarahm-ed Checked v0.8.3...v0.8.4 |
@younes0 have you tried with the latest version, it's the same? |
@ammarahm-ed yes it's the same. |
@younes0 Try 0.8.20. I fixed the problem now I think |
@ammarahm-ed I've just updated the snack with 0.8.20 and the problem is still there |
btw Problem happens with my real device (oneplus 10t) + emulator (pixel 6) |
After the changes i made, i am not able to reproduce it in your snack example. Before it was adding bottom padding 24 and it was bigger than usual with the Text. 🤔 |
@ammarahm-ed I'm not sure to understand what you mean by reproducing the snack example: the snack has been updated so you can try it. There's no padding added or anything. |
@younes0 Try |
Almost @ammarahm-ed ! There's no extra space this time, but it seems that there is like a negative margin, you can see that the content is cropped: |
@ammarahm-ed just realized with this new version, if you add |
Then keep that prop disabled if you don't need padding from bottom. Or manually add some padding when needed. You can simply add some safe padding at bottom i think. I will see to it again but you need to somehow diff between devices with soft buttons and those that use gestures Using some library that gives you bottom nav bar height. |
Maybe try this and add padding to container style on bottom based on nav bar height. https://github.com/ConnectyCube/react-native-android-navbar-height |
I just updated to X.21 and I see padding in the bottom? |
My workaround is below:
and give a |
I also found extra bottom space in version Adding |
It looks like the |
has anyone figured out the cause of the randomness? why is the behavior inconsistent? |
I'm on version 0.8.29 and also still have the issue. |
Same problem here since i upgraded react native from 0.69.9 to 0.71.7 and expo from ~46.0.21 to ~48.0.15. Currently using this packages version ^0.8.29. On every Actionsheet on ios real device and simulator is a space in the size of the phones status bar on the bottom that i cant get rid of, which pushes on full size actionsheet the handler under the actionsheet. The actionsheet containerstyle has the background color green and my content in the actionsheet has the background color red, this shows that the problem is still there on newest react native/expo and package versions. |
Turns out, 0.8.3 is the last possible version without the spacing so i am using this. |
Downgraded to 0.8.3 and bug goes away |
For anyone searching for a solution, removing the code i pointed at in https://github.com/ammarahm-ed/react-native-actions-sheet/pull/328 this request, should fix the weird spacing, tested it on version 0.8.29 |
Thanks so much @jonxssc. Was pretty puzzled on this, but glad we found a fix. |
@ammarahm-ed Was this resolved? I still see this on latest version 0.9.2. |
This workaround works partially. I need a background color on the sheet which doesn't apply to the white area even if the margin is applied on the container style. |
Action sheet shows additional space in bottom of it.
It is random,one time it shows and the next time it doesn't.
The text was updated successfully, but these errors were encountered: