@ant-design/react-native
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
29 lines (28 loc) • 1.06 kB
TypeScript
import React from 'react';
import { WithThemeStyles } from '../style';
import { CameraRollPickerProps } from './CameraRollPicker';
import { ImageRollTexts } from './ImageRoll';
import { ImagePickerPropTypes } from './PropsType';
import { ImagePickerStyle } from './style/index';
export interface ImagePickerProps extends ImagePickerPropTypes, WithThemeStyles<ImagePickerStyle>, ImageRollTexts {
cameraPickerProps?: CameraRollPickerProps;
}
export default class ImagePicker extends React.Component<ImagePickerProps, any> {
static defaultProps: {
onChange(): void;
onFail(): void;
files: never[];
selectable: boolean;
};
plusText: any;
plusWrap: any;
constructor(props: ImagePickerProps);
onPressIn: (styles: ImagePickerStyle) => () => void;
onPressOut: (styles: ImagePickerStyle) => () => void;
showPicker: () => void;
addImage(imageObj: any): void;
removeImage(idx: number): void;
hideImageRoll: () => void;
onImageClick(index: number): void;
render(): JSX.Element;
}