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.
mZIndexHash
PROP_TEST_ID
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 |
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 |
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, needsCustomLayoutForChildren, removeAllViews, removeView, removeViewAt, reorderChildrenByZIndex, setViewZIndex, shouldPromoteGrandchildren, updateExtraData
setAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setElevation, setImportantForAccessibility, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndex
addEventEmitters, createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedCustomDirectEventTypeConstants, getExportedViewConstants, getNativeProps, onAfterUpdateTransaction, onDropViewInstance, updateProperties
public ReactHorizontalScrollViewManager()
public ReactHorizontalScrollViewManager(@Nullable FpsListener fpsListener)
public java.lang.String getName()
getName
in class ViewManager<ReactHorizontalScrollView,LayoutShadowNode>
public ReactHorizontalScrollView createViewInstance(ThemedReactContext context)
ViewManager
createViewInstance
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 receiveCommand(ReactHorizontalScrollView scrollView, int commandId, @Nullable ReadableArray args)
ViewManager
UIManager
. 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 setBottomFillColor(ReactHorizontalScrollView view, int color)
view
- color
-