Skip to content

Commit

Permalink
Fix android's image tintColor prop when used with alpha
Browse files Browse the repository at this point in the history
Summary:Fixes #6075
UIExplorer example has been tested with 4 levels of opacity(100,75,50,25)

![selection_029](https://cloud.githubusercontent.com/assets/11550281/13228124/31c85dcc-d9c0-11e5-90e3-3938e155d5a2.png)
Closes #6090

Differential Revision: D2979913

Pulled By: mkonicek

fb-gh-sync-id: ff30dec853935a059979096d9b1da9088d146249
shipit-source-id: ff30dec853935a059979096d9b1da9088d146249
  • Loading branch information
AbilashK authored and facebook-github-bot-7 committed Feb 26, 2016
1 parent 5112a63 commit 8b88cae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.util.Map;

import android.graphics.Color;
import android.graphics.PorterDuff.Mode;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.drawee.controller.AbstractDraweeControllerBuilder;
Expand Down Expand Up @@ -120,7 +121,7 @@ public void setTintColor(ReactImageView view, @Nullable Integer tintColor) {
if (tintColor == null) {
view.clearColorFilter();
} else {
view.setColorFilter(tintColor);
view.setColorFilter(tintColor, Mode.SRC_IN);
}
}

Expand Down

0 comments on commit 8b88cae

Please sign in to comment.