UNPKG

@prosperitainova/dumbo-react-native

Version:
36 lines 1.63 kB
import React from 'react'; import { GestureResponderEvent, StyleProp, ViewProps, ViewStyle } from 'react-native'; /** Props for FileUploaderItem component */ export type FileUploaderItemProps = { /** Name of the file */ name: string; /** Status of the file upload (default is edit) */ status?: 'uploading' | 'edit' | 'complete'; /** Error text to show when invalid */ errorTitle?: string; /** Error details to show when invalid */ errorDetails?: string; /** Callback when the remove button is pressed. Will not show remove icon if not set or if type is not edit/undefined or invalid=true. */ onDelete?: (event: GestureResponderEvent) => void; /** Indicate if file is invalid */ invalid?: boolean; /** Text to use for delete file button (accessibility). Defaults to ENGLISH "Delete" */ deleteFileButtonText?: string; /** Style to set on the item */ style?: StyleProp<ViewStyle>; /** Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this. */ componentProps?: ViewProps; }; /** * FileUploaderItem component for rendering an item that has been uploaded or will be * * {@link https://github.com/carbon-design-system/carbon-react-native/blob/main/example/src/Views/FileUploaderItem.tsx | Example code} */ export declare class FileUploaderItem extends React.Component<FileUploaderItemProps> { private get styles(); private get visualIndicator(); private get deleteItem(); private get errorArea(); render(): React.ReactNode; } //# sourceMappingURL=index.d.ts.map