mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 08:22:23 +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();
|
||||
}
|
||||
|
||||
void drawChildren(final Canvas canvas) {
|
||||
synchronized void drawChildren(final Canvas canvas) {
|
||||
mRendered = true;
|
||||
mCanvas = canvas;
|
||||
if (mAlign != null) {
|
||||
|
||||
Reference in New Issue
Block a user