UNPKG

@sendbird/uikit-react

Version:

Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.

12 lines (11 loc) 477 B
import React from 'react'; type onPositionEvent = { distanceFromBottom: number; }; export interface UseOnScrollReachedEndDetectorParams { onReachedTop?: (event: onPositionEvent) => void; onReachedBottom?: (event: onPositionEvent) => void; onInBetween?: (event: onPositionEvent) => void; } export declare function useOnScrollPositionChangeDetector(params: UseOnScrollReachedEndDetectorParams): (event: React.UIEvent<HTMLDivElement, UIEvent>) => void; export {};