react-native-scroll-into-view
Version:
React-Native port of DOMElement.scrollIntoView() web function, for ScrollView
7 lines (6 loc) • 367 B
TypeScript
import React from 'react';
import { LayoutRectangle } from 'react-native';
declare type FindNodeHandleArg = null | number | React.Component<any, any> | React.ComponentClass<any>;
export declare const measureElement: (element: FindNodeHandleArg) => Promise<LayoutRectangle>;
export declare const throttle: <T extends Function>(func: T, limit: number) => T;
export {};