public abstract class BaseViewManager<T extends android.view.View,C extends LayoutShadowNode> extends ViewManager<T,C>
ViewManager
. It
provides support for base view properties such as backgroundColor, opacity, etc.NativeModule.NativeMethod
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Integer> |
sStateDescription |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Constructor and Description |
---|
BaseViewManager() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getExportedCustomDirectEventTypeConstants()
Returns a map of config data passed to JS that defines eligible events that can be placed on
native views.
|
protected void |
onAfterUpdateTransaction(T 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 |
setAccessibilityActions(T view,
ReadableArray accessibilityActions) |
void |
setAccessibilityHint(T view,
java.lang.String accessibilityHint) |
void |
setAccessibilityLabel(T view,
java.lang.String accessibilityLabel) |
void |
setAccessibilityLiveRegion(T view,
java.lang.String liveRegion) |
void |
setAccessibilityRole(T view,
java.lang.String accessibilityRole) |
void |
setBackgroundColor(T view,
int backgroundColor) |
protected void |
setBorderBottomLeftRadius(T view,
float borderRadius) |
protected void |
setBorderBottomRightRadius(T view,
float borderRadius) |
protected void |
setBorderRadius(T view,
float borderRadius) |
protected void |
setBorderTopLeftRadius(T view,
float borderRadius) |
protected void |
setBorderTopRightRadius(T view,
float borderRadius) |
void |
setElevation(T view,
float elevation) |
void |
setImportantForAccessibility(T view,
java.lang.String importantForAccessibility) |
void |
setNativeId(T view,
java.lang.String nativeId) |
void |
setOpacity(T view,
float opacity) |
void |
setRenderToHardwareTexture(T view,
boolean useHWTexture) |
void |
setRotation(T view,
float rotation)
Deprecated.
|
void |
setScaleX(T view,
float scaleX)
Deprecated.
|
void |
setScaleY(T view,
float scaleY)
Deprecated.
|
void |
setTestId(T view,
java.lang.String testId) |
void |
setTransform(T view,
ReadableArray matrix) |
void |
setTranslateX(T view,
float translateX)
Deprecated.
|
void |
setTranslateY(T view,
float translateY)
Deprecated.
|
void |
setViewState(T view,
ReadableMap accessibilityState) |
void |
setViewStates(T view,
ReadableArray accessibilityStates) |
void |
setZIndex(T view,
float zIndex) |
addEventEmitters, createShadowNodeInstance, createShadowNodeInstance, createView, createViewInstance, createViewInstance, getCommandsMap, getDelegate, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getName, getNativeProps, getShadowNodeClass, measure, onDropViewInstance, receiveCommand, receiveCommand, updateExtraData, updateLocalData, updateProperties, updateState
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
public static final java.util.Map<java.lang.String,java.lang.Integer> sStateDescription
public void setBackgroundColor(T view, int backgroundColor)
public void setTransform(T view, ReadableArray matrix)
public void setOpacity(T view, float opacity)
public void setElevation(T view, float elevation)
public void setZIndex(T view, float zIndex)
public void setRenderToHardwareTexture(T view, boolean useHWTexture)
public void setTestId(T view, java.lang.String testId)
public void setNativeId(T view, java.lang.String nativeId)
public void setAccessibilityLabel(T view, java.lang.String accessibilityLabel)
public void setAccessibilityHint(T view, java.lang.String accessibilityHint)
public void setAccessibilityRole(T view, java.lang.String accessibilityRole)
public void setViewStates(T view, ReadableArray accessibilityStates)
public void setViewState(T view, ReadableMap accessibilityState)
public void setAccessibilityActions(T view, ReadableArray accessibilityActions)
public void setImportantForAccessibility(T view, java.lang.String importantForAccessibility)
@Deprecated public void setRotation(T view, float rotation)
@Deprecated public void setScaleX(T view, float scaleX)
@Deprecated public void setScaleY(T view, float scaleY)
@Deprecated public void setTranslateX(T view, float translateX)
@Deprecated public void setTranslateY(T view, float translateY)
public void setAccessibilityLiveRegion(T view, java.lang.String liveRegion)
protected void onAfterUpdateTransaction(T view)
ViewManager
onAfterUpdateTransaction
in class ViewManager<T extends android.view.View,C extends LayoutShadowNode>
public java.util.Map<java.lang.String,java.lang.Object> getExportedCustomDirectEventTypeConstants()
ViewManager
Returned map should be of the form:
{ "onTwirl": { "registrationName": "onTwirl" } }
getExportedCustomDirectEventTypeConstants
in class ViewManager<T extends android.view.View,C extends LayoutShadowNode>
protected void setBorderRadius(T view, float borderRadius)
protected void setBorderBottomLeftRadius(T view, float borderRadius)
protected void setBorderBottomRightRadius(T view, float borderRadius)
protected void setBorderTopLeftRadius(T view, float borderRadius)
protected void setBorderTopRightRadius(T view, float borderRadius)