-
Notifications
You must be signed in to change notification settings - Fork 176
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
iOS statusbar height #354
Comments
Can you verify if this fixes the problem? #352 I need to review and merge it once the pipeline succeeds. |
Unfortunately that did not work either. I've found success using |
I think we need to use react-native-safe-area-context always and not the other solutions. When it's configured well it looks like it's now applied 2 two times. https://snack.expo.dev/@richardlindhout/react-native-paper-dates-ios-statusbar?platform=android |
Also the safe area should be disabled when presentation mode is sheet + color should be better based on same logic as headerBackgroundColor |
@RichardLindhout Still not getting the desired result. I upgraded my dependencies and tested using the range example in the documentation
|
@joeburghard do you have safe-area-context correctly configured? |
New release soon avalailable! |
Current behaviour
Greetings! I'm seeing an issue within iOS devices for
DatePickerModal
where the modal is under the statusbar. The view that's styling the top of the modal to provide space is doing the following.This works all but for ios. Looking further into react native docs the
StatusBar.currentHeight
is strictly android and returnsundefined
for iOS.Expected behaviour
The expected behaviour is the header of
DatePickerModal
should be directly under statusbar without disabling statusbar paddingHow to reproduce?
Using the latest versions of react-native-paper( 5.11.1 ) and react-native-paper-dates( 0.20.04 ) create the react-native-paper-dates-range-picker example from docs and launch through iPhone14 simulator or real device.
Preview
What have you tried so far?
Your Environment
The text was updated successfully, but these errors were encountered: