Introduction#
This guide provides step-by-step instructions for integrating the @imgly/editor-react-native module into your existing mobile Expo project. By the end of this guide, you will have a powerful creative editor running in your own Expo application.
Note: Customizing the CreativeEditor SDK for React Native is handled exclusively through native code (Swift/Kotlin), as outlined in our configuration overview section.
Pre-requisites#
Before you begin, make sure the following requirements are met:
- A properly configured Expo development environment
- Platform-specific development setup for your target (Android and/or iOS)
- Git CLI installed
- A valid CE.SDK license key (Request a license), pass
nullto run in evaluation mode with watermark.
Minimum Requirements#
- React Native: 0.74
- iOS: 16
- Swift: 6.3.3 (Xcode 26.6.0)
- Android: 7.0 (Android SDK 24)
Add Dependency#
First, install the @imgly/editor-react-native module by running the following command:
npx expo install @imgly/editor-react-native@1.87.0Native Setup#
If your application includes Android or iOS as a target platform, some manual configuration is required. Please complete the following steps to ensure proper integration. We suggest using the expo-build-properties plugin but you can also do all necessary steps manually.
First, add the expo-build-properties plugin to your application. The command also adds "expo-build-properties" to the plugins array of your app.json file:
npx expo install expo-build-propertiesAndroid#
If your application includes Android as a target platform, make the following changes in your app.json file:
- Increase the
minSdkto at least 24 - Include the IMG.LY maven repository
Replace the "expo-build-properties" entry that the install command added with an entry that holds the options. If your plugins array already has an expo-build-properties entry with options, add the options to that entry instead:
"plugins": [ "expo-build-properties" [ "expo-build-properties", { "android": { "minSdkVersion": 24, "extraMavenRepos": ["https://maven.img.ly/maven"] } } ]]iOS#
If your application includes iOS as a target platform, you’ll need to:
- Set
useFrameworkstostatic, because the editor’s Swift modules need frameworks - Optionally: Add photo library permission if you plan to enable full photo library access (by default, CE.SDK uses the system photos picker which doesn’t require permissions)
Add the ios options to the same expo-build-properties entry. An app without Android replaces the "expo-build-properties" entry with one that holds only the ios options:
"plugins": [ [ "expo-build-properties", { "android": { "minSdkVersion": 24, "extraMavenRepos": ["https://maven.img.ly/maven"] } }, "ios": { "useFrameworks": "static" } } ]]If another library in your app needs dynamic frameworks, such as React Native Firebase, set "useFrameworks": "dynamic" instead. On Expo SDK 56 and later, also add "usePrecompiledModules": false to the ios options.
If you want to enable full photo library access (instead of the default photos picker), add the photo library permission to the ios object of your app.json file:
"ios": { "infoPlist": { "NSPhotoLibraryUsageDescription": "This app needs photo library access to import images for editing" }, "supportsTablet": true}Note: This permission is only required if you explicitly enable full photo library access using PhotoRollAssetSource(engine: engine, mode: .fullLibraryAccess) in your iOS code.
IMG.LY publishes the CE.SDK pods to its own spec repository, because CocoaPods trunk accepts no new pod versions from December 2, 2026. Expo generates the Podfile, so add the IMG.LY source with a small config plugin. The CocoaPods Spec Repository guide shows the plugin and how to register it in app.json.
Finally, run the prebuild command to generate the needed native code.
npx expo prebuildUsing the Creative Editor#
To finally make use of the editor, call the IMGLYEditor.openEditor function with suitable EditorSettings and optionally your desired EditorPreset passed in:
import IMGLYEditor, { EditorPreset, EditorSettingsModel, SourceType,} from '@imgly/editor-react-native';
export const design_editor_solution = async (): Promise<void> => { const settings = new EditorSettingsModel({ license: 'YOUR_LICENSE_KEY', // pass null for evaluation mode with watermark userId: 'UNIQUE_USER_ID', }); const result = await IMGLYEditor?.openEditor( settings, { source: 'test_image.png', type: SourceType.IMAGE, }, EditorPreset.DESIGN, );};Within a new file, define an asynchronous function named design_editor_solution where you will initialize the EditorSettingsModel. After providing your valid license key and an optional unique user ID, pass the configured settings to IMGLYEditor.openEditor(). At this point, you can also specify an optional EditorPreset to open one of our predefined editor variants.
Optionally provide a Source object containing an existing image, video, or scene alongside its corresponding SourceType to open the editor with that content; otherwise pass undefined and the editor will start blank.
Now, you can launch the editor by calling design_editor_solution() from wherever you want to open it from.
Next Steps#
- Explore the available presets tailored to different editor solutions.
- Set up a native interface to customize the editor according to your specific requirements.
Common Errors#
Dependency not found#
Couldn't find any versions for "@imgly/editor-react-native" that matches "^x.xx.x"Solution -> Ensure you are using an existing version of the IMG.LY editor.
Unintegrated Swift pods#
[!] The following Swift pods cannot yet be integrated as static libraries:The Swift pod `IMGLYEditorModule` depends upon `IMGLYUI`, which does not define modules.Solution -> Ensure you have useFrameworks set in your expo-build-properties iOS configuration. Use static, or dynamic if another library in your app needs dynamic frameworks. On Expo SDK 56 and later, dynamic also needs "usePrecompiledModules": false:
{ "ios": { "useFrameworks": "static" }}Higher deployment target required#
Specs satisfying the `IMGLYEditorModule (from `../node_modules/@imgly/editor-react-native`)` dependency were found, but they required a higher minimum deployment target.Solution -> Expo SDK 55 and older target an iOS version below 16 by default. Add the deploymentTarget to the ios options of expo-build-properties:
{ "ios": { "deploymentTarget": "16.0", "useFrameworks": "static" }}Deployment target below 16.4#
Error: `ios.deploymentTarget` needs to be at least version 16.4.Solution -> Expo SDK 56 and later need iOS 16.4 or higher. If you upgraded from an older SDK with "deploymentTarget": "16.0", remove the deploymentTarget line from the ios options of expo-build-properties.
Unsupported Kotlin version#
Expo SDK 54 and 55 report:
Can't find KSP version for Kotlin version '1.9.10'. You're probably using an unsupported version of Kotlin.Expo SDK 56 and 57 report:
Kotlin 1.9.10 is not supported by Expo modules.The minimum supported Kotlin version is 2.1.20.Solution -> Remove kotlinVersion from the android options of expo-build-properties, so the build uses the Kotlin version of your Expo SDK.
Incompatible compose compiler#
e: This version of the Compose Compiler requires Kotlin version x.x.xx but you appear to be using Kotlin version y.y.yy which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).Solution -> Ensure you have the proper compose compiler version for your project. Check official mappings here