public class SwipeRefreshLayoutManager extends ViewGroupManager<ReactSwipeRefreshLayout>
ReactSwipeRefreshLayout which allows the user to "pull to refresh" a
child view. Emits an onRefresh event when this happens.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 |
|---|
SwipeRefreshLayoutManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEventEmitters(ThemedReactContext reactContext,
ReactSwipeRefreshLayout view)
Subclasses can override this method to install custom event emitters on the given View.
|
protected ReactSwipeRefreshLayout |
createViewInstance(ThemedReactContext reactContext)
Subclasses should return a new View instance of the proper type.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExportedCustomDirectEventTypeConstants()
Returns a map of config data passed to JS that defines eligible events that can be placed on
native views.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExportedViewConstants()
Returns a map of view-specific constants that are injected to JavaScript.
|
java.lang.String |
getName() |
void |
setColors(ReactSwipeRefreshLayout view,
ReadableArray colors) |
void |
setEnabled(ReactSwipeRefreshLayout view,
boolean enabled) |
void |
setProgressBackgroundColor(ReactSwipeRefreshLayout view,
int color) |
void |
setProgressViewOffset(ReactSwipeRefreshLayout view,
float offset) |
void |
setRefreshing(ReactSwipeRefreshLayout view,
boolean refreshing) |
void |
setSize(ReactSwipeRefreshLayout view,
Dynamic size) |
addView, addViews, createShadowNodeInstance, getChildAt, getChildCount, getShadowNodeClass, getViewZIndex, needsCustomLayoutForChildren, removeAllViews, removeView, removeViewAt, setViewZIndex, shouldPromoteGrandchildren, 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, getNativeProps, measure, onDropViewInstance, receiveCommand, receiveCommand, updateLocalData, updateProperties, updateStatecanOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroypublic static final java.lang.String REACT_CLASS
protected ReactSwipeRefreshLayout createViewInstance(ThemedReactContext reactContext)
ViewManagercreateViewInstance in class ViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>public java.lang.String getName()
getName in interface NativeModulegetName in class ViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>public void setEnabled(ReactSwipeRefreshLayout view, boolean enabled)
public void setColors(ReactSwipeRefreshLayout view, ReadableArray colors)
public void setProgressBackgroundColor(ReactSwipeRefreshLayout view, int color)
public void setSize(ReactSwipeRefreshLayout view, Dynamic size)
public void setRefreshing(ReactSwipeRefreshLayout view, boolean refreshing)
public void setProgressViewOffset(ReactSwipeRefreshLayout view, float offset)
protected void addEventEmitters(ThemedReactContext reactContext, ReactSwipeRefreshLayout view)
ViewManageraddEventEmitters in class ViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>public java.util.Map<java.lang.String,java.lang.Object> getExportedViewConstants()
ViewManagergetExportedViewConstants in class ViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>public java.util.Map<java.lang.String,java.lang.Object> getExportedCustomDirectEventTypeConstants()
ViewManagerReturned map should be of the form:
{
"onTwirl": {
"registrationName": "onTwirl"
}
}
getExportedCustomDirectEventTypeConstants in class BaseViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>