-
Notifications
You must be signed in to change notification settings - Fork 39
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
Pop-up is too low on Android #35
Comments
@rpander93 Sorry for the late reply. Oh I overlooked this. So the correct height should be:
Seems there is no way to determine in code whether StatusBar is translucent or not. I will opt for externalizing it as props. Will find a time to implement this. Thanks for reporting and sorry for the inconvenience caused. |
No worries! That's indeed what's going on. Thanks for looking into it. |
Any update! |
Hi there,
We found that the pop-up is too low on Android if not using the translucent statusbar. In our case, we switched from managing the statusbar with the component to letting Android manage it. We then saw that the pop-up was rendered with a top margin of approx. 1x the height of the statusbar. This is caused by:
react-native-push-notification-popup/src/views/DefaultPopup.js
Line 14 in 614575e
Setting this to 0 manually fixes the issue. Unfortunately it seems that this is not configurable, so we had do copy the whole file just to make this adjustment. Is this something that could be fixed?
The text was updated successfully, but these errors were encountered: