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.
|
LayoutShadowNode |
createShadowNodeInstance()
This method should return a subclass of
ReactShadowNode 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() |
java.lang.Class |
getShadowNodeClass()
This method should return
Class instance that represent type of shadow node that this
manager will return from ViewManager.createShadowNodeInstance() . |
void |
setEnabled(com.facebook.react.views.switchview.ReactSwitch view,
boolean enabled) |
void |
setOn(com.facebook.react.views.switchview.ReactSwitch view,
boolean on) |
updateExtraData
setAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setElevation, setImportantForAccessibility, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndex
createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedCustomDirectEventTypeConstants, getExportedViewConstants, getNativeProps, onAfterUpdateTransaction, onDropViewInstance, receiveCommand, updateProperties
public java.lang.String getName()
getName
in class ViewManager<com.facebook.react.views.switchview.ReactSwitch,LayoutShadowNode>
public LayoutShadowNode createShadowNodeInstance()
ViewManager
ReactShadowNode
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 ReactShadowNode
createShadowNodeInstance
in class SimpleViewManager<com.facebook.react.views.switchview.ReactSwitch>
public java.lang.Class getShadowNodeClass()
ViewManager
Class
instance that represent type of shadow node that this
manager will return from ViewManager.createShadowNodeInstance()
.
This method will be used in the bridge initialization phase to collect properties exposed using
ReactProp
(or ReactPropGroup
) annotation from the ReactShadowNode
subclass specific for native view this manager provides.getShadowNodeClass
in class SimpleViewManager<com.facebook.react.views.switchview.ReactSwitch>
Class
object that represents type of shadow node used by this view manager.protected com.facebook.react.views.switchview.ReactSwitch createViewInstance(ThemedReactContext context)
ViewManager
createViewInstance
in class ViewManager<com.facebook.react.views.switchview.ReactSwitch,LayoutShadowNode>
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)
ViewManager
addEventEmitters
in class ViewManager<com.facebook.react.views.switchview.ReactSwitch,LayoutShadowNode>