public class ReactSwitchManager extends SimpleViewManager<com.facebook.react.views.switchview.ReactSwitch>
ReactSwitch components.PROP_TEST_ID| Constructor and Description |
|---|
ReactSwitchManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEventEmitters(ThemedReactContext reactContext,
com.facebook.react.views.switchview.ReactSwitch view)
Subclasses can override this method to install custom event emitters on the given View.
|
ReactShadowNode |
createCSSNodeInstance()
This method should return a subclass of
CSSNode which will be then used for measuring
position and size of the view. |
protected com.facebook.react.views.switchview.ReactSwitch |
createViewInstance(ThemedReactContext context)
Subclasses should return a new View instance of the proper type.
|
java.lang.String |
getName() |
void |
setEnabled(com.facebook.react.views.switchview.ReactSwitch view,
boolean enabled) |
void |
setOn(com.facebook.react.views.switchview.ReactSwitch view,
boolean on) |
updateExtraDatasetAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setDecomposedMatrix, setImportantForAccessibility, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTranslateX, setTranslateYcreateView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedCustomDirectEventTypeConstants, getExportedViewConstants, getNativeProps, onAfterUpdateTransaction, onDropViewInstance, receiveCommand, updateProperties, updateViewpublic java.lang.String getName()
getName in class ViewManager<com.facebook.react.views.switchview.ReactSwitch,ReactShadowNode>public ReactShadowNode createCSSNodeInstance()
ViewManagerCSSNode which will be then used for measuring
position and size of the view. In mose of the cases this should just return an instance of
CSSNodecreateCSSNodeInstance in class SimpleViewManager<com.facebook.react.views.switchview.ReactSwitch>protected com.facebook.react.views.switchview.ReactSwitch createViewInstance(ThemedReactContext context)
ViewManagercreateViewInstance in class ViewManager<com.facebook.react.views.switchview.ReactSwitch,ReactShadowNode>public void setEnabled(com.facebook.react.views.switchview.ReactSwitch view,
boolean enabled)
public void setOn(com.facebook.react.views.switchview.ReactSwitch view,
boolean on)
protected void addEventEmitters(ThemedReactContext reactContext, com.facebook.react.views.switchview.ReactSwitch view)
ViewManageraddEventEmitters in class ViewManager<com.facebook.react.views.switchview.ReactSwitch,ReactShadowNode>