mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-30 22:12:42 +08:00
Support borders in RCTImageView
Summary: @public Initial RCTImageView implementation only supported 'src', 'tintColor' and 'resizeMode'. This diff adds support for the rest of the properties: 'borderColor', 'borderWidth' and 'borderRadius'. `AbstractDrawBorders` class is reused in a follow up diff to draw borders for 'RCTView'. Reviewed By: sriramramani Differential Revision: D2693560
This commit is contained in:
committed by
Ahmed El-Helw
parent
760422525e
commit
71ca522c68
@@ -107,6 +107,10 @@ import com.facebook.infer.annotation.Assertions;
|
||||
return ((CloseableBitmap) closeableImage).getUnderlyingBitmap();
|
||||
}
|
||||
|
||||
/* package */ boolean isDetached() {
|
||||
return mAttachCounter == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNewResult(DataSource<CloseableReference<CloseableImage>> dataSource) {
|
||||
if (!dataSource.isFinished()) {
|
||||
|
||||
Reference in New Issue
Block a user