Fix android's image tintColor prop when used with alpha

Summary:Fixes https://github.com/facebook/react-native/issues/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 https://github.com/facebook/react-native/pull/6090

Differential Revision: D2979913

Pulled By: mkonicek

fb-gh-sync-id: ff30dec853935a059979096d9b1da9088d146249
shipit-source-id: ff30dec853935a059979096d9b1da9088d146249
This commit is contained in:
AbilashK 2016-02-25 16:54:43 -08:00 committed by facebook-github-bot-7
parent 5112a63953
commit 8b88cae747

View File

@ -14,6 +14,7 @@ import javax.annotation.Nullable;
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;
@ -120,7 +121,7 @@ public class ReactImageManager extends SimpleViewManager<ReactImageView> {
if (tintColor == null) {
view.clearColorFilter();
} else {
view.setColorFilter(tintColor);
view.setColorFilter(tintColor, Mode.SRC_IN);
}
}