@logo-rn/logo-file-uploader
v0.2.0
Published
<LogoFileUploader/> is a component for uploading files and camera roll assets.
Downloads
4
Readme
@logo-rn/logo-file-uploader
is a component for uploading files and camera roll assets.
Installation
Install the component:
npm i @logo-rn/logo-file-uploader -s
Usage
Once installed, import the component in your application:
import {LogoFileUploader} from '@logo-rn/logo-file-uploader';
const [result, setResult] = React.useState<
| Array<DocumentPickerResponse>
| DirectoryPickerResponse
| undefined
| null
| any
>();
//...
<LogoFileUploader
result={result}
onPress={setResult}
type="progress"
acceptedFiles={["pdf", "images"]}
/>