1.0.7 • Published 6 years ago

react-native-cloudinary-image-display v1.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

Installation

npm i --save react-native-cloudinary-image-display

Props

In order to properly use this library you have to provide it with a few configuration parameters:

Required:

cloud_name

The cloudinary cloud name associated with your Cloudinary account.

imageId

Id of the uploaded image.

width

Original width of the uploaded image.

height

Height of the uploaded image.

Optional:

options

In addition to the mandatory cloud_name identifier, there are also a number of optional parameters you may want to define. Please refer to Cloudinary Documentation for more information on these parameters.

if no options object is set, following default options will be used:

{
	crop: 'fill',
	format: 'jpg',
	quality: 100,
	secure: true,
	cdn_subdomain: true
}

style

Custom style to apply to Image.

borderRadius

Border radius to apply to Image

sideMargin

Side margin to apply to Image

Usage

import CloudinaryImage from 'react-native-cloudinary-image-display';

<CloudinaryImage cloudName={'cloudName'}
				imageId={'gk9cslue8qeba5djqnzg'}
				width={2448}
				height={3264} />
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago