0.0.12 • Published 1 year ago

@optisolbusiness/react-native-s3file-upload v0.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-s3file-upload

@optisolbusiness/react-native-s3file-upload

Installation

npm i @optisolbusiness/react-native-s3file-upload
npm i react-native-fs

If using iOS please remember to install cocoapods by running: npx pod-install

Usage

import { S3FileUpload } from "@optisolbusiness/react-native-s3file-upload";

// ...
      <S3FileUpload
        Config={{ s3Region: '', ImageUrl: '', identityPoolId: '', bucketName: '', }}
        file={[{name: '',size: '',type: '',uri:''}]}
        onProgress={(progress) => }
        response={(response) => }
        error={(error) => }
      />
      

To file parameter you can pass the object response from an image picker library, document picker library, or other file selection library that returns an object with a type, uri property representing the file path. You can pass either images, videos, documents to file parameter.

For uploading videos in android size should be less than 40 mb and in ios should be less than 160 mb

Props

PropTypeDescription
configObjectMandatory. Pass s3Region, ImageUrl, identityPoolId, bucketName
fileArray of ObjectMandatory. Need to pass file details
responseArray of ObjectMandatory. To get Response Object
onProgressNumberOptional. Will get progress value
errorObjectOptional. To get Error response

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago