/aliyun-oss-react-native-fix-wrapper

offer addition functionality to operate images in aliyun cloud base on aliyun-oss-react-native-fix

Primary LanguageJavaMIT LicenseMIT

aliyun-oss-react-native-fix-wrapper

Offer addition functionality to operate images in aliyun cloud base on aliyun-oss-react-native-fix-further

Installation

npm install aliyun-oss-react-native-fix-wrapper

Usage

import {uploadImagesToAliCloud} from "aliyun-oss-react-native-fix-wrapper";

// ...

const uploadedImageNames = await uploadImagesToAliCloud(
  [
    {
      name: '1.png',
      path: 'yourPath',
    },
    {
      name: '2.png',
      path: 'yourPath',
    },
  ],
  {
    AccessKeyId: 'YourAccessKeyId',
    AccessKeySecret: 'YourAccessKeySecret',
    SecurityToken: 'YourSecurityToken',
    bucketName: 'YourBucketName',
    endpoint: 'YourEndpoint',
    folder: 'YourFolder',
  }
);

Contributing

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

License

MIT