Type alias FileUploaderItemProps

FileUploaderItemProps: {
    componentProps?: ViewProps;
    deleteFileButtonText?: string;
    errorDetails?: string;
    errorTitle?: string;
    invalid?: boolean;
    name: string;
    onDelete?: ((event) => void);
    status?: "uploading" | "edit" | "complete";
    style?: StyleProp<ViewStyle>;
}

Props for FileUploaderItem component

Type declaration

  • Optional componentProps?: ViewProps

    Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this.

  • Optional deleteFileButtonText?: string

    Text to use for delete file button (accessibility). Defaults to ENGLISH "Delete"

  • Optional errorDetails?: string

    Error details to show when invalid

  • Optional errorTitle?: string

    Error text to show when invalid

  • Optional invalid?: boolean

    Indicate if file is invalid

  • name: string

    Name of the file

  • Optional onDelete?: ((event) => void)
      • (event): void
      • 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.

        Parameters

        • event: GestureResponderEvent

        Returns void

  • Optional status?: "uploading" | "edit" | "complete"

    Status of the file upload (default is edit)

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

Generated using TypeDoc