-
Notifications
You must be signed in to change notification settings - Fork 25k
Description
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13.1
Node: 8.9.1
Yarn: 1.3.2
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 3.0 AI-171.4408382
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: 0.50.3 => 0.50.3
Steps to Reproduce
Create a project with react-native init projectName
- Create a Absolute positioned View inside a Relative positioned parent
- Provide zIndex to Absolute positioned View.
- Create Multiple View of type as mentioned in step 1 in flexDirection: column
- The Absolute positioned View will be clipped by the Next Relative positioned View in IOS.
Expected Behavior
On Android the Text component should appear above the below View Component which is correct as per my understanding.
On IOS the Text component should appear above the below View Component. As it happened in Android.
Actual Behavior
On android the Text component appear above the below View Component which is correct as per my understanding.
On IOS the Text component is not shown above the below View Component. The Text component is getting clipped.
Reproducible Demo
https://snack.expo.io/ryqJU3ZJM
https://stackoverflow.com/questions/47200609/react-native-zindex-inconsistent-behaviour-on-android-and-ios