react-native-cloudinary-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.2.7 • Public • Published

react-native-cloudinary-sdk

react native wrapper for iOS, Android Cloudinary SDKs

Installation

npm install react-native-cloudinary-sdk
# or with yarn
yarn add react-native-cloudinary-sdk

Usage

import * as Cloudinary from 'react-native-cloudinary-sdk';

// ...
const Config = {
  cloud_name: 'your-cloud-name',
  secure: true,
  presetName: 'your-preset-name',
}
Cloudinary.setup(Config);
// ...

const uploaded_url = await Cloudinary.upload(
  {
    url,
    type,
    params: {
      preset_name: Config.presetName,
    },
  },
  (data) => {
    console.warn('onProgress - ', data.progress);
  }
);

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

Package Sidebar

Install

npm i react-native-cloudinary-sdk

Weekly Downloads

19

Version

0.2.7

License

MIT

Unpacked Size

65.3 kB

Total Files

24

Last publish

Collaborators

  • gosourcellc