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 |
---|---|
void |
setAccessibilityComponentType(T view,
java.lang.String accessibilityComponentType) |
void |
setAccessibilityLabel(T view,
java.lang.String accessibilityLabel) |
void |
setAccessibilityLiveRegion(T view,
java.lang.String liveRegion) |
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 |
setZIndex(T view,
float zIndex) |
addEventEmitters, createShadowNodeInstance, createShadowNodeInstance, createView, createViewInstance, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedCustomDirectEventTypeConstants, getExportedViewConstants, getName, getNativeProps, getShadowNodeClass, onAfterUpdateTransaction, onDropViewInstance, receiveCommand, updateExtraData, 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 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)