-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Description
SafeAreaView
bottom margin is not honored inside of a Modal
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 a Modal
.
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 a Modal
.
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
- Run the Snack on an iPhone X simulator
- Find
render()
and note the two options (one with modal, one not) - Comment the options appropriately and see the issue
- Remember, you need to run this on an iPhone X to see the problem