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:
Denis Koroskin
2015-12-12 14:48:34 -08:00
committed by Ahmed El-Helw
parent 760422525e
commit 71ca522c68
6 changed files with 239 additions and 5 deletions

View File

@@ -103,6 +103,9 @@ package com.facebook.react.flat;
return mBottom;
}
protected void onBoundsChanged() {
}
/**
* Updates boundaries of this DrawCommand.
*/
@@ -111,6 +114,8 @@ package com.facebook.react.flat;
mTop = top;
mRight = right;
mBottom = bottom;
onBoundsChanged();
}
/**