public class ReactCheckBoxManager extends SimpleViewManager<com.facebook.react.views.checkbox.ReactCheckBox>
ReactCheckBox
components.NativeModule.NativeMethod
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REACT_CLASS |
sStateDescription
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Constructor and Description |
---|
ReactCheckBoxManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEventEmitters(ThemedReactContext reactContext,
com.facebook.react.views.checkbox.ReactCheckBox view)
Subclasses can override this method to install custom event emitters on the given View.
|
protected com.facebook.react.views.checkbox.ReactCheckBox |
createViewInstance(ThemedReactContext context)
Subclasses should return a new View instance of the proper type.
|
java.lang.String |
getName() |
void |
receiveCommand(com.facebook.react.views.checkbox.ReactCheckBox root,
java.lang.String commandId,
ReadableArray args)
Subclasses may use this method to receive events/commands directly from JS through the
UIManager . |
void |
setEnabled(com.facebook.react.views.checkbox.ReactCheckBox view,
boolean enabled) |
void |
setOn(com.facebook.react.views.checkbox.ReactCheckBox view,
boolean on) |
void |
setTintColors(com.facebook.react.views.checkbox.ReactCheckBox view,
ReadableMap colorsMap) |
createShadowNodeInstance, getShadowNodeClass, updateExtraData
getExportedCustomDirectEventTypeConstants, onAfterUpdateTransaction, setAccessibilityActions, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLiveRegion, setAccessibilityRole, setAccessibilityValue, setBackgroundColor, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderRadius, setBorderTopLeftRadius, setBorderTopRightRadius, setElevation, setImportantForAccessibility, setNativeId, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setViewState, setZIndex
createShadowNodeInstance, createView, createViewInstance, getCommandsMap, getDelegate, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getNativeProps, measure, onDropViewInstance, receiveCommand, setPadding, updateLocalData, updateProperties, updateState
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
public static final java.lang.String REACT_CLASS
public java.lang.String getName()
getName
in interface NativeModule
getName
in class ViewManager<com.facebook.react.views.checkbox.ReactCheckBox,LayoutShadowNode>
protected void addEventEmitters(ThemedReactContext reactContext, com.facebook.react.views.checkbox.ReactCheckBox view)
ViewManager
addEventEmitters
in class ViewManager<com.facebook.react.views.checkbox.ReactCheckBox,LayoutShadowNode>
protected com.facebook.react.views.checkbox.ReactCheckBox createViewInstance(ThemedReactContext context)
ViewManager
createViewInstance
in class ViewManager<com.facebook.react.views.checkbox.ReactCheckBox,LayoutShadowNode>
public void setEnabled(com.facebook.react.views.checkbox.ReactCheckBox view, boolean enabled)
public void setOn(com.facebook.react.views.checkbox.ReactCheckBox view, boolean on)
public void receiveCommand(com.facebook.react.views.checkbox.ReactCheckBox root, java.lang.String commandId, ReadableArray args)
ViewManager
UIManager
. Good example of such a command would be scrollTo
request with coordinates
for a ReactScrollView
instance.receiveCommand
in class ViewManager<com.facebook.react.views.checkbox.ReactCheckBox,LayoutShadowNode>
root
- View instance that should receive the commandcommandId
- code of the commandargs
- optional arguments for the commandpublic void setTintColors(com.facebook.react.views.checkbox.ReactCheckBox view, ReadableMap colorsMap)