UNPKG

1.65 kBTypeScriptView Raw
1import * as React from 'react';
2import { IPickerProps } from './PickerTypes';
3export interface IPickerProp {
4 select: (...arg: any[]) => void;
5 doScrollingComplete: (...arg: any[]) => void;
6}
7declare const _default: {
8 new (props?: IPickerProps, context?: any): {
9 select: (value: any, itemHeight: any, scrollTo: any) => void;
10 selectByIndex(index: any, itemHeight: any, zscrollTo: any): void;
11 computeChildIndex(top: any, itemHeight: any, childrenLength: any): number;
12 doScrollingComplete: (top: any, itemHeight: any, fireValueChange: any) => void;
13 render(): JSX.Element;
14 setState<K extends string | number | symbol>(state: any, callback?: () => any): void;
15 forceUpdate(callBack?: () => any): void;
16 props: Readonly<{
17 children?: React.ReactNode;
18 }> & Readonly<IPickerProps>;
19 state: Readonly<any>;
20 context: any;
21 refs: {
22 [key: string]: React.ReactInstance;
23 };
24 componentWillMount?(): void;
25 componentDidMount?(): void;
26 componentWillReceiveProps?(nextProps: Readonly<IPickerProps>, nextContext: any): void;
27 shouldComponentUpdate?(nextProps: Readonly<IPickerProps>, nextState: Readonly<any>, nextContext: any): boolean;
28 componentWillUpdate?(nextProps: Readonly<IPickerProps>, nextState: Readonly<any>, nextContext: any): void;
29 componentDidUpdate?(prevProps: Readonly<IPickerProps>, prevState: Readonly<any>, prevContext: any): void;
30 componentWillUnmount?(): void;
31 };
32 Item: (_props: import("./PickerMixin").IItemProps) => any;
33};
34export default _default;