Initial Scroll Position
Instead of starting at the top with the first item, start at
initialScrollIndex.Use
initialScrollIndexParams to apply additional offset to the initial scroll position.Additional configuration for
initialScrollIndex. Use viewOffset to apply an offset to the initial scroll position as defined by initialScrollIndex.Ignored if initialScrollIndex is not set.Scroll Events
Called once when the scroll position gets within
onEndReachedThreshold of the rendered content.How far from the end (in units of visible length of the list) the bottom edge of the list must be from the end of the content to trigger the
onEndReached callback.Thus a value of 0.5 will trigger onEndReached when the end of the content is within half the visible length of the list.Called once when the scroll position gets within
onStartReachedThreshold of the start of the content.How far from the start (in units of visible length of the list) the top edge of the list must be from the start of the content to trigger the
onStartReached callback.Thus a value of 0.5 will trigger onStartReached when the start of the content is within half the visible length of the list.Fires at most once per frame during scrolling. Inherited from ScrollView.
Controls how often the scroll event will be fired while scrolling (in milliseconds). Inherited from ScrollView. A lower number improves accuracy but may impact performance.
Maintaining Visible Content Position
Configuration for maintaining scroll position when content changes. Useful for chat-like interfaces where new messages can be added at the top or bottom.Properties:
disabled(boolean): maintainVisibleContentPosition is enabled by default. Set totrueto disableautoscrollToTopThreshold(number): When content is added at the top, automatically scroll to maintain position if the user is within this threshold of the topautoscrollToBottomThreshold(number): When content is added at the bottom, automatically scroll to maintain position if the user is within this threshold of the bottomanimateAutoScrollToBottom(boolean, default:true): Scroll with animation whenever autoscrollToBottom is triggeredstartRenderingFromBottom(boolean): If true, initial render will start from the bottom of the list, useful for chat-like interfaces when there are only few messages
Scroll Indicators
When true, shows a vertical scroll indicator. Inherited from ScrollView.
When true, shows a horizontal scroll indicator. Inherited from ScrollView.
Other ScrollView Props
Reverses the direction of scroll. Uses scale transforms of -1. Inherited from ScrollView.
When true, the scroll view bounces when it reaches the end of the content. Inherited from ScrollView.
When true, the scroll view bounces vertically when it reaches the end even if the content is smaller than the scroll view. Inherited from ScrollView.
When true, the scroll view bounces horizontally when it reaches the end even if the content is smaller than the scroll view. Inherited from ScrollView.
When false, the view cannot be scrolled via touch interaction. Inherited from ScrollView.
When true, the scroll view stops on multiples of the scroll view’s size when scrolling. Inherited from ScrollView.