-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Modal component does not support SafeAreaView bottom margin #18177
Comments
Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest stable release? Thank you for your contributions. |
I upgraded to React Native 54.0 but the provided snack demonstration still holds. The bottom safe area margin is not honored within a Environment: Packages: (wanted => installed) |
Subscribing |
I have the same issue. Modal overlays only the bottom SafeAreaView. |
You can use SafeAreaView from react-navigation. It works for me
|
it works for me thanks! |
"SafeAreaView bottom margin is not being honored in a Modal" is still bothering me (react-native: 0.55.4) |
Having the same issue here. The SafeAreaView in react-navigation is a nice workaround but React Native's built-in SafeAreaView should work. |
I am seeing this issue on version 0.55.2 |
Hi, guys. @damikdk, @hyungtae3713 |
Just as an update as of v 0.57.1 the issue still exists. |
I am having the same issue in 0.56. |
Still exists in |
@bhardman1986 @erickjth @levibuzolic for modals and absolute positioned views use SafeAreaView from react-navigation (instead of react-native) like said before |
Fix for issue: facebook#18177
still a thing.. |
It works correctly with |
Is there a recommended workaround for this? |
This bug 100% still exists and is over a year old. Has anything been done on addressing this? @michalchudziak what is the emulateUnlessSupported property? |
What version of react-navigation's SafeAreaView fixed it for you guys? It's still broken for me with react-native's SafeAreaView and react-navigation's. |
Is there any way I can use SafeAreaView with Modal ? |
Looking at this, and
appears to fix the problem without anything weird, but seems like a hack. Will open a PR anyway. |
Still having issue with this.. Neither SafeAreaView from React Native nor the one from react-navigation is working for me. |
Anyone can try #25150? |
Summary: Fixes #18177 . Related #24497. Autoresizing mask would conflict with `AutoLayout`. For example , it would impact `SafeAreaView`. And actually we don't need to use autoresizing mask, we observe the bounds change notification and [update the frame manually](https://github.com/facebook/react-native/blob/1151c096dab17e5d9a6ac05b61aacecd4305f3db/React/Views/RCTModalHostView.m#L59). ## Changelog [iOS] [Fixed] - Removed autoresizing mask for modal host container view Pull Request resolved: #25150 Differential Revision: D15645148 Pulled By: cpojer fbshipit-source-id: 95d5f40feaa980b959a3de6e273dccac8158c57b
Still not working (RN 0.59.9) |
We fixed this by using https://github.com/react-native-community/react-native-safe-area-view |
Me too, but I want to use native SafeAreaView. |
Is it applied in 0.59.10 ? |
Still not, only in |
Thank you! And what about forceInset in native realization? Can we hope? |
I have an older version of ReactNative so got it to work like this:
Using:
|
Summary: Fixes facebook#18177 . Related facebook#24497. Autoresizing mask would conflict with `AutoLayout`. For example , it would impact `SafeAreaView`. And actually we don't need to use autoresizing mask, we observe the bounds change notification and [update the frame manually](https://github.com/facebook/react-native/blob/1151c096dab17e5d9a6ac05b61aacecd4305f3db/React/Views/RCTModalHostView.m#L59). ## Changelog [iOS] [Fixed] - Removed autoresizing mask for modal host container view Pull Request resolved: facebook#25150 Differential Revision: D15645148 Pulled By: cpojer fbshipit-source-id: 95d5f40feaa980b959a3de6e273dccac8158c57b
SafeAreaView
bottom margin is not honored inside of aModal
on an iPhone X.Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 9.7.1
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.7.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.53.3 => 0.53.3
Expected Behavior
On an iPhone X, when a full screen component wrapped in a
SafeAreaView
renders correctly on the root view of the application, it should also render correctly when used inside of aModal
.Actual Behavior
On an iPhone X, a full screen component wrapped in a
SafeAreaView
renders correctly on the root view of the application but it does not render correctly when used inside of aModal
.Specifically, the HEADER margin is present but the FOOTER margin is missing. The full screen component goes to the bottom edge of the iPhone X (simulator).
Steps to Reproduce
render()
and note the two options (one with modal, one not)https://snack.expo.io/@lutherbaker/modal---safeareaview
The text was updated successfully, but these errors were encountered: