UNPKG

react-native-ui-lib

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a

23 lines (22 loc) 710 B
/// <reference types="react" /> import { ItemProps } from './Item'; export declare type ItemValueTypes = ItemProps | number | string; declare type PropTypes = { initialValue?: ItemValueTypes; children?: JSX.Element | JSX.Element[]; items?: ItemProps[]; itemHeight: number; preferredNumVisibleRows: number; }; declare type RowItem = { value: string | number; index: number; }; interface Presenter { items: ItemProps[]; index: number; height: number; getRowItemAtOffset: (offset: number) => RowItem; } declare const usePresenter: ({ initialValue, children, items: propItems, itemHeight, preferredNumVisibleRows }: PropTypes) => Presenter; export default usePresenter;