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 |
---|---|
protected static java.lang.String |
REACT_CLASS |
PROP_NATIVE_ID, PROP_TEST_ID
METHOD_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,
int size) |
addView, addViews, createShadowNodeInstance, getChildAt, getChildCount, getShadowNodeClass, getViewZIndex, needsCustomLayoutForChildren, removeAllViews, removeView, removeViewAt, setViewZIndex, shouldPromoteGrandchildren, updateExtraData
setAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setElevation, setImportantForAccessibility, setNativeId, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndex
createShadowNodeInstance, createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getNativeProps, onAfterUpdateTransaction, onDropViewInstance, receiveCommand, updateProperties
canOverrideExistingModule, getConstants, hasConstants, initialize, onCatalystInstanceDestroy
protected static final java.lang.String REACT_CLASS
protected ReactSwipeRefreshLayout createViewInstance(ThemedReactContext reactContext)
ViewManager
createViewInstance
in class ViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>
public java.lang.String getName()
getName
in interface NativeModule
getName
in class ViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>
public void setEnabled(ReactSwipeRefreshLayout view, boolean enabled)
public void setColors(ReactSwipeRefreshLayout view, @Nullable ReadableArray colors)
public void setProgressBackgroundColor(ReactSwipeRefreshLayout view, int color)
public void setSize(ReactSwipeRefreshLayout view, int size)
public void setRefreshing(ReactSwipeRefreshLayout view, boolean refreshing)
public void setProgressViewOffset(ReactSwipeRefreshLayout view, float offset)
protected void addEventEmitters(ThemedReactContext reactContext, ReactSwipeRefreshLayout view)
ViewManager
addEventEmitters
in class ViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>
@Nullable public java.util.Map<java.lang.String,java.lang.Object> getExportedViewConstants()
ViewManager
getExportedViewConstants
in class ViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>
public java.util.Map<java.lang.String,java.lang.Object> getExportedCustomDirectEventTypeConstants()
ViewManager
getExportedCustomDirectEventTypeConstants
in class ViewManager<ReactSwipeRefreshLayout,LayoutShadowNode>