Skip to content

zIndex inconsistent behaviour on Android and IOS #16771

@shubendrak

Description

@shubendrak

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

  1. Create a Absolute positioned View inside a Relative positioned parent
  2. Provide zIndex to Absolute positioned View.
  3. Create Multiple View of type as mentioned in step 1 in flexDirection: column
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions