public class ReactImageManager extends SimpleViewManager<ReactImageView>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REACT_CLASS |
PROP_TEST_ID
Constructor and Description |
---|
ReactImageManager() |
ReactImageManager(AbstractDraweeControllerBuilder draweeControllerBuilder,
java.lang.Object callerContext) |
Modifier and Type | Method and Description |
---|---|
ReactImageView |
createViewInstance(ThemedReactContext context)
Subclasses should return a new View instance of the proper type.
|
java.lang.Object |
getCallerContext() |
AbstractDraweeControllerBuilder |
getDraweeControllerBuilder() |
java.util.Map |
getExportedCustomDirectEventTypeConstants()
Returns a map of config data passed to JS that defines eligible events that can be placed on
native views.
|
java.lang.String |
getName() |
protected void |
onAfterUpdateTransaction(ReactImageView view)
Callback that will be triggered after all properties are updated in current update transaction
(all @ReactProp handlers for properties updated in current transaction have been called).
|
void |
setBorderColor(ReactImageView view,
java.lang.Integer borderColor) |
void |
setBorderRadius(ReactImageView view,
int index,
float borderRadius) |
void |
setBorderWidth(ReactImageView view,
float borderWidth) |
void |
setFadeDuration(ReactImageView view,
int durationMs) |
void |
setLoadHandlersRegistered(ReactImageView view,
boolean shouldNotifyLoadEvents) |
void |
setLoadingIndicatorSource(ReactImageView view,
java.lang.String source) |
void |
setOverlayColor(ReactImageView view,
java.lang.Integer overlayColor) |
void |
setProgressiveRenderingEnabled(ReactImageView view,
boolean enabled) |
void |
setResizeMethod(ReactImageView view,
java.lang.String resizeMethod) |
void |
setResizeMode(ReactImageView view,
java.lang.String resizeMode) |
void |
setSource(ReactImageView view,
ReadableArray sources) |
void |
setTintColor(ReactImageView view,
java.lang.Integer tintColor) |
createShadowNodeInstance, getShadowNodeClass, updateExtraData
setAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setElevation, setImportantForAccessibility, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndex
addEventEmitters, createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getNativeProps, onDropViewInstance, receiveCommand, updateProperties
public static final java.lang.String REACT_CLASS
public ReactImageManager(AbstractDraweeControllerBuilder draweeControllerBuilder, java.lang.Object callerContext)
public ReactImageManager()
public java.lang.String getName()
getName
in class ViewManager<ReactImageView,LayoutShadowNode>
public AbstractDraweeControllerBuilder getDraweeControllerBuilder()
public java.lang.Object getCallerContext()
public ReactImageView createViewInstance(ThemedReactContext context)
ViewManager
createViewInstance
in class ViewManager<ReactImageView,LayoutShadowNode>
public void setSource(ReactImageView view, @Nullable ReadableArray sources)
public void setLoadingIndicatorSource(ReactImageView view, @Nullable java.lang.String source)
public void setBorderColor(ReactImageView view, @Nullable java.lang.Integer borderColor)
public void setOverlayColor(ReactImageView view, @Nullable java.lang.Integer overlayColor)
public void setBorderWidth(ReactImageView view, float borderWidth)
public void setBorderRadius(ReactImageView view, int index, float borderRadius)
public void setResizeMode(ReactImageView view, @Nullable java.lang.String resizeMode)
public void setResizeMethod(ReactImageView view, @Nullable java.lang.String resizeMethod)
public void setTintColor(ReactImageView view, @Nullable java.lang.Integer tintColor)
public void setProgressiveRenderingEnabled(ReactImageView view, boolean enabled)
public void setFadeDuration(ReactImageView view, int durationMs)
public void setLoadHandlersRegistered(ReactImageView view, boolean shouldNotifyLoadEvents)
@Nullable public java.util.Map getExportedCustomDirectEventTypeConstants()
ViewManager
getExportedCustomDirectEventTypeConstants
in class ViewManager<ReactImageView,LayoutShadowNode>
protected void onAfterUpdateTransaction(ReactImageView view)
ViewManager
onAfterUpdateTransaction
in class ViewManager<ReactImageView,LayoutShadowNode>