Preview 2.0 is now in Public Beta!
Read the Announcement
ScrollView

Summary

Constructors

constructor

Properties

horizontalOffset
isScrollEnabled
orientation
scrollableHeight
scrollableWidth
scrollBarIndicatorVisible
scrollEvent
verticalOffset
165 properties inherited from ContentView
Click to expand

Methods

_onOrientationChanged
on
scrollToHorizontalOffset
scrollToVerticalOffset
130 methods inherited from ContentView
Click to expand

Constructors

constructor

new ScrollView(): ScrollView

Properties

horizontalOffset

horizontalOffset: number

isScrollEnabled

isScrollEnabled: boolean

scrollBarIndicatorVisible

scrollBarIndicatorVisible: boolean

scrollableHeight

scrollableHeight: number

scrollableWidth

scrollableWidth: number

verticalOffset

verticalOffset: number

scrollEvent

Static

Methods

_onOrientationChanged

_onOrientationChanged(): void

on

on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void
Parameter Default Description
eventNames
string

callback
(data: EventData) => void

thisArg
any

Returns void
on(event: "scroll", callback: (args: ScrollEventData) => void, thisArg?: any): void
Parameter Default Description
event
"scroll"

callback
(args: ScrollEventData) => void

thisArg
any

Returns void

scrollToHorizontalOffset

scrollToHorizontalOffset(value: number, animated: boolean): any
Parameter Default Description
value
number

animated
boolean

Returns any

scrollToVerticalOffset

scrollToVerticalOffset(value: number, animated: boolean): any
Parameter Default Description
value
number

animated
boolean

Returns any
Previous
Screen