mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-09 09:27:20 +00:00
[android] Make SvgView.drawChildren synchronized
Fix race-condition https://github.com/react-native-community/react-native-svg/issues/948
This commit is contained in:
@@ -238,7 +238,7 @@ public class SvgView extends ReactViewGroup implements ReactCompoundView, ReactC
|
|||||||
return mCanvas.getClipBounds();
|
return mCanvas.getClipBounds();
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawChildren(final Canvas canvas) {
|
synchronized void drawChildren(final Canvas canvas) {
|
||||||
mRendered = true;
|
mRendered = true;
|
||||||
mCanvas = canvas;
|
mCanvas = canvas;
|
||||||
if (mAlign != null) {
|
if (mAlign != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user