mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Support multiple sources
Summary: The nodes version of D3364550. The only difference is that here we don't get `onSizeChanged` but `onBoundsChanged`, and we need to compute the height/width of the target image from those bounds. ahmedre please let me know if any of these assumptions are in any way incorrect. Reviewed By: ahmedre Differential Revision: D3424843
This commit is contained in:
committed by
Ahmed El-Helw
parent
f2a6570b07
commit
c61aafe95d
@@ -14,6 +14,7 @@ import javax.annotation.Nullable;
|
||||
import android.content.Context;
|
||||
|
||||
import com.facebook.drawee.drawable.ScalingUtils.ScaleType;
|
||||
import com.facebook.react.bridge.ReadableArray;
|
||||
|
||||
/**
|
||||
* Common interface for DrawImageWithPipeline and DrawImageWithDrawee.
|
||||
@@ -28,7 +29,7 @@ import com.facebook.drawee.drawable.ScalingUtils.ScaleType;
|
||||
/**
|
||||
* Assigns a new image source to the DrawImage, or null to clear the image request.
|
||||
*/
|
||||
void setSource(Context context, @Nullable String source);
|
||||
void setSource(Context context, @Nullable ReadableArray sources);
|
||||
|
||||
/**
|
||||
* Assigns a tint color to apply to the image drawn.
|
||||
|
||||
Reference in New Issue
Block a user