public class ReactSliderManager extends SimpleViewManager<ReactSlider>
ReactSlider
.
Note that the slider is _not_ a controlled component.PROP_TEST_ID
Constructor and Description |
---|
ReactSliderManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEventEmitters(ThemedReactContext reactContext,
ReactSlider 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 ReactSlider |
createViewInstance(ThemedReactContext context)
Subclasses should return a new View instance of the proper type.
|
java.util.Map |
getExportedCustomDirectEventTypeConstants()
Returns a map of config data passed to JS that defines eligible events that can be placed on
native views.
|
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(ReactSlider view,
boolean enabled) |
void |
setMaximumValue(ReactSlider view,
double value) |
void |
setMinimumValue(ReactSlider view,
double value) |
void |
setStep(ReactSlider view,
double value) |
void |
setValue(ReactSlider view,
double value) |
updateExtraData
setAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setElevation, setImportantForAccessibility, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndex
createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getNativeProps, onAfterUpdateTransaction, onDropViewInstance, receiveCommand, updateProperties
public java.lang.String getName()
getName
in class ViewManager<ReactSlider,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<ReactSlider>
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<ReactSlider>
Class
object that represents type of shadow node used by this view manager.protected ReactSlider createViewInstance(ThemedReactContext context)
ViewManager
createViewInstance
in class ViewManager<ReactSlider,LayoutShadowNode>
public void setEnabled(ReactSlider view, boolean enabled)
public void setValue(ReactSlider view, double value)
public void setMinimumValue(ReactSlider view, double value)
public void setMaximumValue(ReactSlider view, double value)
public void setStep(ReactSlider view, double value)
protected void addEventEmitters(ThemedReactContext reactContext, ReactSlider view)
ViewManager
addEventEmitters
in class ViewManager<ReactSlider,LayoutShadowNode>
public java.util.Map getExportedCustomDirectEventTypeConstants()
ViewManager
getExportedCustomDirectEventTypeConstants
in class ViewManager<ReactSlider,LayoutShadowNode>