public class ReactSliderManager extends SimpleViewManager<ReactSlider>
ReactSlider.
Note that the slider is _not_ a controlled component.
NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REACT_CLASS |
sStateDescriptionMETHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| 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(). |
long |
measure(android.content.Context context,
ReadableMap localData,
ReadableMap props,
ReadableMap state,
float width,
YogaMeasureMode widthMode,
float height,
YogaMeasureMode heightMode) |
void |
setEnabled(ReactSlider view,
boolean enabled) |
void |
setMaximumTrackTintColor(ReactSlider view,
java.lang.Integer color) |
void |
setMaximumValue(ReactSlider view,
double value) |
void |
setMinimumTrackTintColor(ReactSlider view,
java.lang.Integer color) |
void |
setMinimumValue(ReactSlider view,
double value) |
void |
setStep(ReactSlider view,
double value) |
void |
setThumbTintColor(ReactSlider view,
java.lang.Integer color) |
void |
setValue(ReactSlider view,
double value) |
updateExtraDataonAfterUpdateTransaction, setAccessibilityActions, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLiveRegion, setAccessibilityRole, setBackgroundColor, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderRadius, setBorderTopLeftRadius, setBorderTopRightRadius, setElevation, setImportantForAccessibility, setNativeId, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setViewState, setViewStates, setZIndexcreateShadowNodeInstance, createView, createViewInstance, getCommandsMap, getDelegate, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getNativeProps, onDropViewInstance, receiveCommand, receiveCommand, updateLocalData, updateProperties, updateStatecanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroypublic static final java.lang.String REACT_CLASS
public java.lang.String getName()
getName in interface NativeModulegetName in class ViewManager<ReactSlider,LayoutShadowNode>public LayoutShadowNode createShadowNodeInstance()
ViewManagerReactShadowNode which will be then used for
measuring position and size of the view. In most of the cases this should just return an
instance of ReactShadowNodecreateShadowNodeInstance in class SimpleViewManager<ReactSlider>public java.lang.Class getShadowNodeClass()
ViewManagerClass 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)
ViewManagercreateViewInstance 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)
public void setThumbTintColor(ReactSlider view, java.lang.Integer color)
public void setMinimumTrackTintColor(ReactSlider view, java.lang.Integer color)
public void setMaximumTrackTintColor(ReactSlider view, java.lang.Integer color)
protected void addEventEmitters(ThemedReactContext reactContext, ReactSlider view)
ViewManageraddEventEmitters in class ViewManager<ReactSlider,LayoutShadowNode>public java.util.Map getExportedCustomDirectEventTypeConstants()
ViewManagerReturned map should be of the form:
{
"onTwirl": {
"registrationName": "onTwirl"
}
}
getExportedCustomDirectEventTypeConstants in class BaseViewManager<ReactSlider,LayoutShadowNode>public long measure(android.content.Context context,
ReadableMap localData,
ReadableMap props,
ReadableMap state,
float width,
YogaMeasureMode widthMode,
float height,
YogaMeasureMode heightMode)
measure in class ViewManager<ReactSlider,LayoutShadowNode>