New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-cloudinary-image-display

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-cloudinary-image-display

React Native Cloudinary Image Display

  • 1.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React Native Cloudinary Image Display

npm version Build Status

react-native-cloudinary-image-display can be used to properly display Image from cloudinary according to device dimensions.

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} />

Keywords

FAQs

Package last updated on 15 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc