Don't double clip images in Nodes

Summary:
Nodes would typically clip its images, and then Fresco would then
re-clip as part of ScaleTypeDrawable - in addition to being unnecessary,
it's also incorrect, beacuse it causes the image to be smaller than it
should be.

Reviewed By: sriramramani

Differential Revision: D3754778
This commit is contained in:
Ahmed El-Helw 2016-08-31 14:32:28 -07:00
parent 9734210f39
commit 82a4017ecd
1 changed files with 5 additions and 0 deletions

View File

@ -207,6 +207,11 @@ import com.facebook.react.views.imagehelper.MultiSourceHelper.MultiSourceResult;
}
}
@Override
protected boolean shouldClip() {
return false;
}
@Override
public void onSubmit(String id, Object callerContext) {
if (mCallback != null && mReactTag != 0) {