public class ReactHorizontalScrollViewManager extends ViewGroupManager<ReactHorizontalScrollView> implements ReactScrollViewCommandHelper.ScrollCommandHandler<ReactHorizontalScrollView>
ReactHorizontalScrollView components.
Note that ReactScrollView and ReactHorizontalScrollView are exposed to JS
as a single ScrollView component, configured via the horizontal boolean property.
NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
REACT_CLASS |
PROP_NATIVE_ID, PROP_TEST_IDMETHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
ReactHorizontalScrollViewManager() |
ReactHorizontalScrollViewManager(FpsListener fpsListener) |
| Modifier and Type | Method and Description |
|---|---|
ReactHorizontalScrollView |
createViewInstance(ThemedReactContext context)
Subclasses should return a new View instance of the proper type.
|
java.lang.String |
getName() |
void |
receiveCommand(ReactHorizontalScrollView scrollView,
int commandId,
ReadableArray args)
Subclasses may use this method to receive events/commands directly from JS through the
UIManager. |
void |
scrollTo(ReactHorizontalScrollView scrollView,
ReactScrollViewCommandHelper.ScrollToCommandData data) |
void |
scrollToEnd(ReactHorizontalScrollView scrollView,
ReactScrollViewCommandHelper.ScrollToEndCommandData data) |
void |
setBorderColor(ReactHorizontalScrollView view,
int index,
java.lang.Integer color) |
void |
setBorderRadius(ReactHorizontalScrollView view,
int index,
float borderRadius) |
void |
setBorderStyle(ReactHorizontalScrollView view,
java.lang.String borderStyle) |
void |
setBorderWidth(ReactHorizontalScrollView view,
int index,
float width) |
void |
setBottomFillColor(ReactHorizontalScrollView view,
int color)
When set, fills the rest of the scrollview with a color to avoid setting a background and
creating unnecessary overdraw.
|
void |
setOverScrollMode(ReactHorizontalScrollView view,
java.lang.String value)
Controls overScroll behaviour
|
void |
setPagingEnabled(ReactHorizontalScrollView view,
boolean pagingEnabled) |
void |
setRemoveClippedSubviews(ReactHorizontalScrollView view,
boolean removeClippedSubviews) |
void |
setScrollEnabled(ReactHorizontalScrollView view,
boolean value) |
void |
setScrollPerfTag(ReactHorizontalScrollView view,
java.lang.String scrollPerfTag)
Tag used for logging scroll performance on this scroll view.
|
void |
setSendMomentumEvents(ReactHorizontalScrollView view,
boolean sendMomentumEvents)
Computing momentum events is potentially expensive since we post a runnable on the UI thread
to see when it is done.
|
void |
setShowsHorizontalScrollIndicator(ReactHorizontalScrollView view,
boolean value) |
addView, addViews, createShadowNodeInstance, getChildAt, getChildCount, getShadowNodeClass, getViewZIndex, needsCustomLayoutForChildren, removeAllViews, removeView, removeViewAt, setViewZIndex, shouldPromoteGrandchildren, updateExtraDatasetAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setElevation, setImportantForAccessibility, setNativeId, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndexaddEventEmitters, createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedCustomDirectEventTypeConstants, getExportedViewConstants, getNativeProps, onAfterUpdateTransaction, onDropViewInstance, updatePropertiescanOverrideExistingModule, getConstants, hasConstants, initialize, onCatalystInstanceDestroyprotected static final java.lang.String REACT_CLASS
public ReactHorizontalScrollViewManager()
public ReactHorizontalScrollViewManager(@Nullable
FpsListener fpsListener)
public java.lang.String getName()
getName in interface NativeModulegetName in class ViewManager<ReactHorizontalScrollView,LayoutShadowNode>public ReactHorizontalScrollView createViewInstance(ThemedReactContext context)
ViewManagercreateViewInstance in class ViewManager<ReactHorizontalScrollView,LayoutShadowNode>public void setScrollEnabled(ReactHorizontalScrollView view, boolean value)
public void setShowsHorizontalScrollIndicator(ReactHorizontalScrollView view, boolean value)
public void setRemoveClippedSubviews(ReactHorizontalScrollView view, boolean removeClippedSubviews)
public void setSendMomentumEvents(ReactHorizontalScrollView view, boolean sendMomentumEvents)
view - sendMomentumEvents - public void setScrollPerfTag(ReactHorizontalScrollView view, java.lang.String scrollPerfTag)
view - scrollPerfTag - public void setPagingEnabled(ReactHorizontalScrollView view, boolean pagingEnabled)
public void setOverScrollMode(ReactHorizontalScrollView view, java.lang.String value)
public void receiveCommand(ReactHorizontalScrollView scrollView, int commandId, @Nullable ReadableArray args)
ViewManagerUIManager. Good example of such a command would be scrollTo request with
coordinates for a ScrollView or goBack request for a WebView instance.receiveCommand in class ViewManager<ReactHorizontalScrollView,LayoutShadowNode>scrollView - View instance that should receive the commandcommandId - code of the commandargs - optional arguments for the commandpublic void scrollTo(ReactHorizontalScrollView scrollView, ReactScrollViewCommandHelper.ScrollToCommandData data)
scrollTo in interface ReactScrollViewCommandHelper.ScrollCommandHandler<ReactHorizontalScrollView>public void scrollToEnd(ReactHorizontalScrollView scrollView, ReactScrollViewCommandHelper.ScrollToEndCommandData data)
scrollToEnd in interface ReactScrollViewCommandHelper.ScrollCommandHandler<ReactHorizontalScrollView>public void setBottomFillColor(ReactHorizontalScrollView view, int color)
view - color - public void setBorderRadius(ReactHorizontalScrollView view, int index, float borderRadius)
public void setBorderStyle(ReactHorizontalScrollView view, @Nullable java.lang.String borderStyle)
public void setBorderWidth(ReactHorizontalScrollView view, int index, float width)
public void setBorderColor(ReactHorizontalScrollView view, int index, java.lang.Integer color)