Skip to content

onScroll()

function onScroll(handler): HookExtension<HookEvent<"scroll", ScrollEvent>>;

Calls handler on each change of the scroll offset, with no throttling: react-native-webview's onScroll.

On iOS, the offsets include the content inset adjustment unless ios.scrollView.contentInsetAdjustmentBehavior is never, react-native-webview's default.

Parameters

Parameter Type
handler (event) => void

Returns

HookExtension<HookEvent<"scroll", ScrollEvent>>