Skip to content
This repository was archived by the owner on Jan 1, 2020. It is now read-only.

[android] Set transparent background. #155

Merged
merged 1 commit into from
Jul 31, 2017
Merged

[android] Set transparent background. #155

merged 1 commit into from
Jul 31, 2017

Conversation

gevgasparyan
Copy link
Contributor

If you want to make backgroundColor transparent on android then you need to pass

backgroundColor={'transparent'}
setZOrderOnTop={true}

Note that setting setZOrderOnTop={true} will change zIndex of Surface and it will appear on the top of your view (in Z-axis). But this is good hack to make transparent background.
And only set setZOrderOnTop={true} when you want to set transparent background, for other colors it will not work.

@gre
Copy link
Owner

gre commented Jun 8, 2017

sounds good! it's nice to make that a prop because you not always want this behavior ;)

@gre
Copy link
Owner

gre commented Jun 8, 2017

please use your fork for now if you need that, i'm going to merge that in 2 weeks & publish (when I come back from China🤣)

@gevgasparyan
Copy link
Contributor Author

no problem 😄

@gre gre self-assigned this Jun 12, 2017
@egunsoma
Copy link

Any update on this? Should the transparent background work on Android now?

@egunsoma
Copy link

@gre Do you know the ETA of merging this PR?

@gre
Copy link
Owner

gre commented Jul 31, 2017

this week

@gre gre merged commit 785d7df into gre:master Jul 31, 2017
@gre
Copy link
Owner

gre commented Sep 30, 2017

unless you have a fix, I might have to revert this PR, it seems to have a regression on images that appear black. according to #164 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants