Integration using Expo
Free Trial#
Our tech is modified to be used for testing purposes without a license key. To start testing just follow this Get Started guide and leave out the step of entering the commercial license keys. The editor will simply render a watermark over the preview and final results. And in case you need any technical assistance, make sure to reach out to us: https://img.ly/support. We’ll be glad to help.
Requirements#
For this version, the requirements are:
- Expo SDK: 45
- iOS: 13
- Android: 5 (SDK 21)
If your app depends on some older versions of these requirements please have a look at previous versions of the SDK.
Please note that this module can not be used in the Expo Go application because it uses custom native libraries.
Expo CLI#
In order to use this module with the Expo CLI you can make use of our integrated Expo config plugin:
Add our module to your Expo application:
expo install react-native-photoeditorsdkThis will automatically install
react-native-imglysdkwhich you can use to configure your application with our Expo config plugin.Inside your app's
app.jsonorapp.config.jsadd our config plugin:{"plugins": ["react-native-imglysdk"]}If needed, you can also use a specific version of our native library for Android as well as define explicitly the included modules. By default, all modules for both PhotoEditor SDK and VideoEditor SDK are included. Further, you can alternate the KSP version with the
kspVersionparameter based on the Kotlin version you are using. Please take a look here on further details.For Expo version < 45, you can configure the
buildToolsVersion,minSdkVersion,compileSdkVersion,targetSdkVersion, andkotlinGradlePluginVersion. From version 45+ we recommend setting these properties using theexpo-build-propertiesconfig plugin directly.{"plugins": [["react-native-imglysdk",{"android": {"version": "10.10.6","kspVersion": "1.8.0-1.0.9","modules": ["ui:core","ui:transform","ui:filter","assets:filter-basic"],"buildToolsVersion": "35.0.0","minSdkVersion": "21","compileSdkVersion": "35","targetSdkVersion": "35","kotlinGradlePluginVersion": "2.1.0"}}]]}For further information on the available modules, please refer to step 4 of the React Native CLI Android guides.
Please note that the
react-native-imglysdkmodule manages both VideoEditor SDK as well as PhotoEditor SDK so you only need to add the Expo config plugin once even when using both SDKs.From version
2.15.0the iOS deployment target needs to be set to at least iOS 13. You can use theexpo-build-propertiesconfig plugin for this. Please refer to the official Expo docs.The changes will be applied on
expo prebuildor during the prebuild phase ofeas build.
For further information on how to integrate Expo config plugins please also refer to the official docs.