Skip to content
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

Changing zIndex style properties do not work on android #15713

Closed
unreg opened this issue Aug 30, 2017 · 5 comments
Closed

Changing zIndex style properties do not work on android #15713

unreg opened this issue Aug 30, 2017 · 5 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@unreg
Copy link

unreg commented Aug 30, 2017

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

  1. react-native -v: react-native-cli: 2.0.1, react-native: 0.47.2
  2. node -v: v8.2.1
  3. npm -v: 5.3.0
  4. yarn --version: No

Then, specify:

  • Target Platform: Android
  • Development Operating System: Linux
  • Build tools: Android SDK

Steps to Reproduce

  1. Make two or more overlapping component with different zIndex style properties. It's work.
  2. Change the zIndex property dynamically, e.g. by switch event. Not works.

Expected Behavior

When change zIndex properties, overlapping of visible objects will change.

Actual Behavior

On android platform, changing the zIndex property does not change overlaping order of the visible components.

On iOS emulator this works correctly.

Reproducible Demo

https://snack.expo.io/B1uniKNY-

@zibs
Copy link

zibs commented Aug 30, 2017

This is a known issue - Please read the issues at #8968 and #14854

Looks like potential fix is: #15203 and may land in rc-.48.2

@janicduplessis
Copy link
Contributor

janicduplessis commented Sep 1, 2017

Thanks for the detailed issue! 0.48 was released today, it should fix this issue.

@ketn
Copy link

ketn commented Sep 15, 2017

This issue didn't get fixed. Still facing the same problem on android. I'm using 0.48.2.

@unreg
Copy link
Author

unreg commented Sep 15, 2017

On 0.48.0 and 0.48.2 it's works.

@ketn
Copy link

ketn commented Sep 15, 2017

Whether I put a dynamic value (using this.state) or a static value, whenever I apply zIndex to my Component, it just disappears.

Here is my Component's styles:

mainContainer: {
    height:130,
    position:'absolute',
    zIndex:5
}

@facebook facebook locked as resolved and limited conversation to collaborators Sep 1, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants