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.lang.String |
PROP_NATIVE_ID |
static java.lang.String |
PROP_TEST_ID
Used to locate views in end-to-end (UI) tests.
|
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Constructor and Description |
---|
BaseViewManager() |
Modifier and Type | Method and Description |
---|---|
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 |
setAccessibilityComponentType(T view,
java.lang.String accessibilityComponentType) |
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) |
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 |
setViewStates(T view,
ReadableArray accessibilityStates) |
void |
setZIndex(T view,
float zIndex) |
addEventEmitters, createShadowNodeInstance, createShadowNodeInstance, createView, createViewInstance, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedCustomDirectEventTypeConstants, getExportedViewConstants, getName, getNativeProps, getShadowNodeClass, measure, onDropViewInstance, receiveCommand, updateExtraData, updateLocalData, updateProperties
canOverrideExistingModule, getConstants, hasConstants, initialize, onCatalystInstanceDestroy
public static final java.lang.String PROP_TEST_ID
public static final java.lang.String PROP_NATIVE_ID
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 setAccessibilityComponentType(T view, java.lang.String accessibilityComponentType)
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 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>