public class ReactImageManager extends SimpleViewManager<ReactImageView>
NativeModule.NativeMethod
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
REACT_CLASS |
PROP_NATIVE_ID, PROP_TEST_ID
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Constructor and Description |
---|
ReactImageManager() |
ReactImageManager(AbstractDraweeControllerBuilder draweeControllerBuilder,
GlobalImageLoadListener globalImageLoadListener,
java.lang.Object callerContext) |
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 |
setBlurRadius(ReactImageView view,
float blurRadius) |
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 |
setHeaders(ReactImageView view,
ReadableMap headers) |
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, setNativeId, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndex
addEventEmitters, createShadowNodeInstance, createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getNativeProps, onDropViewInstance, receiveCommand, updateProperties
canOverrideExistingModule, getConstants, hasConstants, initialize, onCatalystInstanceDestroy
protected static final java.lang.String REACT_CLASS
public ReactImageManager(AbstractDraweeControllerBuilder draweeControllerBuilder, java.lang.Object callerContext)
public ReactImageManager(AbstractDraweeControllerBuilder draweeControllerBuilder, @Nullable GlobalImageLoadListener globalImageLoadListener, java.lang.Object callerContext)
public ReactImageManager()
public java.lang.String getName()
getName
in interface NativeModule
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 setBlurRadius(ReactImageView view, float blurRadius)
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)
public void setHeaders(ReactImageView view, ReadableMap headers)
@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>