Merge pull request #835 from igorlira/resize-invalidate

Invalidate bitmap when view size is changed
This commit is contained in:
Mikael Sand
2018-11-17 04:06:37 +02:00
committed by GitHub
@@ -91,6 +91,12 @@ public class SvgView extends ReactViewGroup implements ReactCompoundView, ReactC
if (mBitmap != null)
canvas.drawBitmap(mBitmap, 0, 0, null);
}
@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh) {
super.onSizeChanged(w, h, oldw, oldh);
this.invalidate();
}
@Override
public int reactTagForTouch(float touchX, float touchY) {