mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-07 22:40:55 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user