ReactScrollViewHelper

Helper class that deals with emitting Scroll Events.

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface HasScrollState
Link copied to clipboard
interface HasSmoothScroll
Link copied to clipboard
interface HasStateWrapper
Link copied to clipboard
Link copied to clipboard
interface ScrollListener

Properties

Link copied to clipboard
const val AUTO: String
Link copied to clipboard
const val MOMENTUM_DELAY: Long = 20
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val SNAP_ALIGNMENT_CENTER: Int = 2
Link copied to clipboard
Link copied to clipboard
const val SNAP_ALIGNMENT_END: Int = 3
Link copied to clipboard
const val SNAP_ALIGNMENT_START: Int = 1

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

This is only for Java listeners. onLayout events emitted to JS are handled elsewhere.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Get current position or position after current animation finishes, if any.

Link copied to clipboard
fun parseOverScrollMode(jsOverScrollMode: String?): Int
Link copied to clipboard
Link copied to clipboard
fun <T : ReactScrollViewHelper.HasFlingAnimator?, ReactScrollViewHelper.HasScrollState?, ViewGroup> predictFinalScrollPosition(scrollView: T, velocityX: Int, velocityY: Int, maximumOffsetX: Int, maximumOffsetY: Int): Point
Link copied to clipboard

Scroll the given view to the location (x, y), with provided initial velocity. This method works by calculate the "would be" initial velocity with internal friction to move to the point (x, y), then apply that to the animator.

Link copied to clipboard

Called on any stabilized onScroll change to propagate content offset value to a Shadow Node.