This page provides an in-depth introduction to the Cloudinary React Native library. The library allows you to integrate Cloudinary URL generation functionality and load your Cloudinary images in your native Android and iOS apps.
OverviewCloudinary's React Native library provides image rendering capabilities and plugins that you can implement in your React Native apps.
SDK security upgrade, June 2025
We recently released an enhanced security version of this SDK that improves the validation and handling of input parameters. We recommend upgrading to the
latest versionof the SDK to benefit from these security improvements.
The React Native SDK has a dependency on the Expo module. If you're not using Expo in your project, you will need to install the module separately in order to use the SDK.
Quick exampleThis example shows a transformation URL being created using the @cloudinary/url-gen
package, and rendered using React Native.
This code creates the HTML required to deliver the front_face.jpg image with the sepia effect applied.
You can apply more than one transformation at a time (see chained transformations) to give more interesting results:
Install Cloudinary's React Native package using the NPM package manager:
ConfigurationYou can specify the configuration parameters that are used to create the delivery URLs, either using a Cloudinary instance or per image.
Specify the configuration parameters in
camelCase
, for example
cloudName.
Cloudinary instance configurationIf you want to use the same configuration to deliver all your media assets, it's best to set up the configuration through a Cloudinary instance, for example:
You can set other configuration parameters related to your cloud and URL as required, for example, if you have your own custom delivery hostname, and want to generate a secure URL (HTTPS):
Asset instance configurationIf you need to specify different configurations to deliver your media assets, you can specify the configuration per image instance, for example:
TransformationsThe @cloudinary/url-gen
package simplifies the generation of transformation URLs, and includes special components and directives for easy embedding of assets in your React Native application.
The @cloudinary/url-gen
package installs an additional transformation-builder-sdk library as a dependency, which handles the transformation generation part of the URL.
You can use the Transformation Builder reference to find all available transformations, syntax and examples.
To find out more about transforming your assets using the @cloudinary/url-gen
package, see React image transformations
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4