@ant-design/react-native
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
72 lines (71 loc) • 3.93 kB
TypeScript
import React from 'react';
import { PickerProps } from './PickerTypes';
export interface IPickerProp {
select: Function;
doScrollingComplete: Function;
}
declare const _default: {
new (props: Readonly<PickerProps>): {
select: (value: any, itemHeight: any, scrollTo: any) => void;
selectByIndex(index: number, itemHeight: any, zscrollTo: any): void;
computeChildIndex(top: any, itemHeight: any, childrenLength: number): number;
doScrollingComplete: (top: any, itemHeight: any, fireValueChange: any) => void;
render(): JSX.Element;
context: any;
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<PickerProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<PickerProps>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<PickerProps>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<PickerProps>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<PickerProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<PickerProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<PickerProps>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<PickerProps>, nextState: Readonly<any>, nextContext: any): void;
};
new (props: PickerProps, context?: any): {
select: (value: any, itemHeight: any, scrollTo: any) => void;
selectByIndex(index: number, itemHeight: any, zscrollTo: any): void;
computeChildIndex(top: any, itemHeight: any, childrenLength: number): number;
doScrollingComplete: (top: any, itemHeight: any, fireValueChange: any) => void;
render(): JSX.Element;
context: any;
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<PickerProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<PickerProps>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<PickerProps>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<PickerProps>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<PickerProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<PickerProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<PickerProps>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<PickerProps>, nextState: Readonly<any>, nextContext: any): void;
};
Item: (_props: {
value: any;
}) => null;
contextType?: React.Context<any> | undefined;
};
export default _default;