public abstract class ReactPickerManager extends SimpleViewManager<ReactPicker>
ViewManager
for the ReactPicker
view. This is abstract because the Spinner
doesn't support setting the mode (dropdown/dialog) outside the constructor, so that is
delegated to the separate ReactDropdownPickerManager
and ReactDialogPickerManager
components. These are merged back on the JS side into one React component.NativeModule.NativeMethod
sStateDescription
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Constructor and Description |
---|
ReactPickerManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEventEmitters(ThemedReactContext reactContext,
ReactPicker picker)
Subclasses can override this method to install custom event emitters on the given View.
|
protected void |
onAfterUpdateTransaction(ReactPicker view)
Callback that will be triggered after all properties are updated in current update transaction
(all @ReactProp handlers for properties updated in current transaction have been called).
|
void |
receiveCommand(ReactPicker view,
java.lang.String commandId,
ReadableArray args)
Subclasses may use this method to receive events/commands directly from JS through the
UIManager . |
void |
setColor(ReactPicker view,
java.lang.Integer color) |
void |
setEnabled(ReactPicker view,
boolean enabled) |
void |
setItems(ReactPicker view,
ReadableArray items) |
void |
setPrompt(ReactPicker view,
java.lang.String prompt) |
void |
setSelected(ReactPicker view,
int selected) |
createShadowNodeInstance, getShadowNodeClass, updateExtraData
getExportedCustomDirectEventTypeConstants, 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, createViewInstance, getCommandsMap, getDelegate, getExportedCustomBubblingEventTypeConstants, getExportedViewConstants, getName, getNativeProps, measure, onDropViewInstance, receiveCommand, setPadding, updateLocalData, updateProperties, updateState
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
public void setItems(ReactPicker view, ReadableArray items)
public void setColor(ReactPicker view, java.lang.Integer color)
public void setPrompt(ReactPicker view, java.lang.String prompt)
public void setEnabled(ReactPicker view, boolean enabled)
public void setSelected(ReactPicker view, int selected)
protected void onAfterUpdateTransaction(ReactPicker view)
ViewManager
onAfterUpdateTransaction
in class BaseViewManager<ReactPicker,LayoutShadowNode>
protected void addEventEmitters(ThemedReactContext reactContext, ReactPicker picker)
ViewManager
addEventEmitters
in class ViewManager<ReactPicker,LayoutShadowNode>
public void receiveCommand(ReactPicker view, 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<ReactPicker,LayoutShadowNode>
view
- View instance that should receive the commandcommandId
- code of the commandargs
- optional arguments for the command