You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use modals in multiple places in our app, with some of them being nested. We share wrapped modal components as well.
We recently switched to using the react-native-paper modal component rather than the react-native one, and now our modals, which should be full screen, are being offset from the top and revealing the views beneath. I have found no way to turn this off, nor have I yet been able to find what is causing it in the react-native-paper code. I am currently attempting to use marginTop on the modals to adjust them, which sort of works, except that the adjustments differ from component to component, and between the same component reused in different places, and between iOS and Android. It's a mess.
Current behaviour
We use modals in multiple places in our app, with some of them being nested. We share wrapped modal components as well.
We recently switched to using the
react-native-paper
modal component rather than thereact-native
one, and now our modals, which should be full screen, are being offset from the top and revealing the views beneath. I have found no way to turn this off, nor have I yet been able to find what is causing it in thereact-native-paper
code. I am currently attempting to usemarginTop
on the modals to adjust them, which sort of works, except that the adjustments differ from component to component, and between the same component reused in different places, and between iOS and Android. It's a mess.Expected behaviour
How to reproduce?
Main modal implementations look like:
and
Preview
The marked orange header should not be visible:
What have you tried so far?
Currently using
marginTop
to adjust, but's it's untenableYour Environment
The text was updated successfully, but these errors were encountered: