@ant-design/react-native
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
68 lines (67 loc) • 3.69 kB
TypeScript
import React from 'react';
import MultiPickerProps from './MultiPickerProps';
export default function (ComposedComponent: any): {
new (props: Readonly<MultiPickerProps>): {
getValue: () => any;
onChange: (i: any, v: any, cb: any) => void;
onValueChange: (i: any, v: any) => void;
onScrollChange: (i: any, v: 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<MultiPickerProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<MultiPickerProps>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<MultiPickerProps>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<MultiPickerProps>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<MultiPickerProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MultiPickerProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<MultiPickerProps>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<MultiPickerProps>, nextState: Readonly<any>, nextContext: any): void;
};
new (props: MultiPickerProps, context?: any): {
getValue: () => any;
onChange: (i: any, v: any, cb: any) => void;
onValueChange: (i: any, v: any) => void;
onScrollChange: (i: any, v: 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<MultiPickerProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<any>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<MultiPickerProps>, nextState: Readonly<any>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<MultiPickerProps>, prevState: Readonly<any>): any;
componentDidUpdate?(prevProps: Readonly<MultiPickerProps>, prevState: Readonly<any>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<MultiPickerProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MultiPickerProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<MultiPickerProps>, nextState: Readonly<any>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<MultiPickerProps>, nextState: Readonly<any>, nextContext: any): void;
};
defaultProps: {
prefixCls: string;
onValueChange(): void;
};
contextType?: React.Context<any> | undefined;
};