Support fade for remote images in React with nodes.
Reviewed By: dkoroskin Differential Revision: D2804997 fb-gh-sync-id: e143fc16c07856e56182cba6d0eb2884a95c7318
This commit is contained in:
parent
181896e4d9
commit
203fdcaa40
|
@ -23,20 +23,20 @@ import android.graphics.Rect;
|
|||
import android.graphics.RectF;
|
||||
import android.graphics.Shader;
|
||||
import android.graphics.drawable.Animatable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.net.Uri;
|
||||
import android.os.SystemClock;
|
||||
|
||||
import com.facebook.common.util.UriUtil;
|
||||
import com.facebook.drawee.controller.AbstractDraweeControllerBuilder;
|
||||
import com.facebook.drawee.drawable.AutoRotateDrawable;
|
||||
import com.facebook.drawee.controller.BaseControllerListener;
|
||||
import com.facebook.drawee.controller.ControllerListener;
|
||||
import com.facebook.drawee.controller.ForwardingControllerListener;
|
||||
import com.facebook.drawee.drawable.AutoRotateDrawable;
|
||||
import com.facebook.drawee.drawable.ScalingUtils;
|
||||
import com.facebook.drawee.generic.GenericDraweeHierarchy;
|
||||
import com.facebook.drawee.generic.GenericDraweeHierarchyBuilder;
|
||||
import com.facebook.drawee.generic.RoundingParams;
|
||||
import com.facebook.drawee.interfaces.DraweeController;
|
||||
import com.facebook.drawee.view.GenericDraweeView;
|
||||
import com.facebook.imagepipeline.common.ResizeOptions;
|
||||
import com.facebook.imagepipeline.image.ImageInfo;
|
||||
|
@ -55,7 +55,7 @@ import com.facebook.react.uimanager.events.EventDispatcher;
|
|||
*/
|
||||
public class ReactImageView extends GenericDraweeView {
|
||||
|
||||
private static final int REMOTE_IMAGE_FADE_DURATION_MS = 300;
|
||||
public static final int REMOTE_IMAGE_FADE_DURATION_MS = 300;
|
||||
|
||||
/*
|
||||
* Implementation note re rounded corners:
|
||||
|
|
Loading…
Reference in New Issue