mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-31 13:52:58 +00:00
Merge remote-tracking branch 'Crash--/patch-1'
This commit is contained in:
@@ -127,13 +127,18 @@ public class SvgViewShadowNode extends LayoutShadowNode {
|
||||
}
|
||||
|
||||
private Object drawOutput() {
|
||||
Bitmap bitmap = Bitmap.createBitmap(
|
||||
(int) getLayoutWidth(),
|
||||
(int) getLayoutHeight(),
|
||||
Bitmap.Config.ARGB_8888);
|
||||
int layoutWidth = (int) getLayoutWidth();
|
||||
int layoutHeight = (int) getLayoutHeight();
|
||||
if(layoutHeight != 0 && layoutWidth != 0) {
|
||||
Bitmap bitmap = Bitmap.createBitmap(
|
||||
layoutWidth,
|
||||
layoutHeight,
|
||||
Bitmap.Config.ARGB_8888);
|
||||
|
||||
drawChildren(new Canvas(bitmap));
|
||||
return bitmap;
|
||||
drawChildren(new Canvas(bitmap));
|
||||
return bitmap;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Rect getCanvasBounds() {
|
||||
|
||||
Reference in New Issue
Block a user