mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-15 12:12:31 +08:00
Pass FlatViewGroup to DrawCommand.draw()
Summary: @public To render `View`s inside `FlatViewGroup`, we need to pass the parent to `DrawCommand.draw()` method. Used in a followup diff. Reviewed By: sriramramani Differential Revision: D2564478
This commit is contained in:
committed by
Ahmed El-Helw
parent
f19acaed4b
commit
7db444c9ae
@@ -80,7 +80,7 @@ import com.facebook.react.views.image.ImageResizeMode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw(Canvas canvas) {
|
||||
public void draw(FlatViewGroup parent, Canvas canvas) {
|
||||
Bitmap bitmap = Assertions.assumeNotNull(mBitmapRequestHelper).getBitmap();
|
||||
if (bitmap == null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user