This comprehensive guide walks you through cloning and running the CE.SDK official React Native Expo sample project, which includes complete CreativeEditor SDK (CE.SDK) integration examples. By the end, you’ll have a fully functional React Native Expo application with multiple editor examples running on your device.
Who Is This Guide For?#
This guide is for developers who:
- Want to explore working CreativeEditor SDK examples before implementing in their own project
- Need to understand different integration patterns and use cases
- Want to test the CreativeEditor SDK features with minimal setup
- Are looking for reference implementations to learn from
- Want to quickly get started with a pre-configured React Native Expo project
- Prefer using Expo for React Native development
What You’ll Achieve#
By following this guide, you will:
- Clone the official IMG.LY React Native examples repository
- Set up the project with your license key
- Run multiple CreativeEditor SDK examples on your device
- Explore different editor presets and configurations
- Understand common integration patterns
- Have a working reference implementation to learn from
View on GitHub
Explore React Native Demos
Prerequisites#
Before you begin, ensure you have the following requirements:
Development Environment#
- Node.js: 18.0 or later
- React Native: 0.73 or later
- Expo CLI: Latest version
- Android Studio or VS Code with React Native extensions
- Git CLI for version control
Platform Requirements#
- iOS: 16.0+ (Xcode 16.4+, Swift 6.1+)
- Android: 7.0+ (API level 24+)
License#
- A valid CE.SDK license key (Get a free trial), pass
nullto run in evaluation mode with watermark.
Verify Your Setup#
Run the following command to verify your React Native installation:
npx react-native --versionThis command checks your React Native installation and reports any issues to resolve before proceeding.
Note: Always use native code when customizing the CreativeEditor SDK for React Native (Swift/Kotlin), and refer to the configuration overview section .
Step 1: Clone the GitHub Repository#
First, navigate to your preferred working directory:
# Navigate to your preferred directorycd ~/Downloads # or any directory of your choiceClone the official IMG.LY React Native examples repository:
git clone https://github.com/imgly/cesdk-react-native-examples.gitcd cesdk-react-native-examplesRepository Structure#
The cloned repository contains:
cesdk-react-native-examples/├── showcases/ # Main React Native app with multiple examples├── shared/ # Shared configuration files├── scripts/ # Build and deployment scripts├── fastlane/ # CI/CD configuration├── README.md # Project documentation├── package.json # React Native dependencies└── app.json # Expo configurationStep 2: Configure Your License Key#
The examples require a valid CreativeEditor SDK license key to function.
2.1 Locate the Secrets File#
Navigate to the main React Native app directory:
cd showcasesThe license configuration is in src/secrets/secrets.ts:
export class Secrets { // Enter your license here. static license = String.fromEnvironment("SHOWCASES_LICENSE_REACT_NATIVE", defaultValue: "");}2.2 Set Your License Key#
You have two options for setting your license key:
Option A: Direct in secrets file (for testing) Since this is a cloned repository for testing, you can add your license key directly:
export class Secrets { // Enter your license here. static license = String.fromEnvironment("SHOWCASES_LICENSE_REACT_NATIVE", defaultValue: "your_actual_license_key_here");}Option B: Environment variable (recommended) Pass the license key as an environment variable when running:
EXPO_PUBLIC_SHOWCASES_LICENSE_REACT_NATIVE=your_actual_license_key_here npx expo startSecurity Note: For production projects, always use environment variables or secure key management systems. Direct key placement is only recommended for testing and learning purposes.
Step 3: Install Dependencies#
Install the React Native dependencies:
shell npm install @cesdk/cesdk-js shell yarn add @cesdk/cesdk-js shell pnpm add @cesdk/cesdk-js This downloads and installs all required packages, including the CreativeEditor SDK.
Step 4: Configure Platform-Specific Settings#
The repository includes pre-configured platform settings, but you may need to verify them:
4.1 Android Configuration#
The Android configuration is already set up with:
- Minimum SDK: 24
- Kotlin version: 1.9.10
- IMG.LY Maven repository
- Required permissions
Verify the configuration by running:
cd androidgradle cleancd ..4.2 iOS Configuration#
The iOS configuration is already set up with:
- Deployment target: 16.0
- Required permissions (camera, microphone)
- Swift support
Install iOS dependencies:
cd iospod installcd ..Step 5: Run the Examples#
Now you can run the React Native examples on your device:
5.1 List Available Devices#
npx expo startThis command shows available devices and simulators.
5.2 Run on Android Device#
# Run with license keyEXPO_PUBLIC_SHOWCASES_LICENSE_REACT_NATIVE=your_actual_license_key_here npx expo start --android
# Or run on specific deviceEXPO_PUBLIC_SHOWCASES_LICENSE_REACT_NATIVE=your_actual_license_key_here npx expo start --android -d your_device_id5.3 Run on iOS Device#
# Run with license keyEXPO_PUBLIC_SHOWCASES_LICENSE_REACT_NATIVE=your_actual_license_key_here npx expo start --ios
# Or run on specific deviceEXPO_PUBLIC_SHOWCASES_LICENSE_REACT_NATIVE=your_actual_license_key_here npx expo start --ios -d your_device_idStep 6: Explore the Examples#
The React Native examples app includes multiple showcases demonstrating different CreativeEditor SDK features:
6.1 Available Examples#
The app contains examples for:
- Photo Editing: Basic photo editing with filters and adjustments
- Design Creation: Full-featured design editor for creating graphics
- Video Editing: Video processing and editing capabilities
- Apparel Design: T-shirt and merchandise design tools
- Postcard Design: Greeting cards and postcard creation
6.2 Navigation#
- Use the app’s navigation to explore different examples
- Each example demonstrates specific CreativeEditor SDK features
- Tap on examples to launch the editor with different presets
- Test available editing capabilities and workflows
6.3 Learning from Examples#
Study the example implementations to understand:
- How to integrate the CreativeEditor SDK
- Different preset configurations
- Result handling patterns
- Error handling approaches
- UI integration patterns
Step 7: Understand the Code Structure#
The examples demonstrate best practices for CreativeEditor SDK integration:
7.1 Key Files to Study#
showcases/├── App.tsx # App entry point├── src/│ ├── secrets/│ │ └── secrets.ts # License key configuration│ ├── services/│ │ └── editorService.ts # Editor integration service│ ├── screens/│ │ └── showcases/ # Example screens│ └── components/ # Reusable UI components├── app.json # Expo configuration└── package.json # Dependencies7.2 Integration Patterns#
The examples show different integration approaches:
- Service-based integration: Centralized editor service
- Screen-specific integration: Direct integration in screens
- Preset variations: Different editor configurations
- Result handling: Common ways to process editor results
7.3 Key Implementation Details#
Study these important aspects:
- License Management: How license keys are handled securely
- Error Handling: Comprehensive error handling patterns
- State Management: How app state is managed during editor sessions
- Platform Configuration: Expo build properties and native setup
- UI Integration: How the editor integrates with React Native UI
Troubleshooting#
Common Issues and Solutions#
1. License Key Errors#
Error:
Invalid license keySolution:
- Ensure you have a valid license key from IMG.LY (or pass
nullfor evaluation mode with watermark) - Verify the license key is correctly set in
src/secrets/secrets.ts - Check that the license key is for the correct platform (React Native)
- Ensure there are no extra spaces or characters in the license key
- Make sure you’re passing the license key with
EXPO_PUBLIC_SHOWCASES_LICENSE_REACT_NATIVE=your_key
2. Build Errors#
Error:
Dependencies not foundSolution:
- Run
npm install/yarn/pnpm installto install dependencies - Check your internet connection
- Verify React Native version compatibility
3. Platform-Specific Issues#
Android Issues:
cd androidgradle cleancd ..npx expo start --androidiOS Issues:
cd iospod installcd ..npx expo start --ios4. Device Connection Issues#
Error:
No devices foundSolution:
- Ensure your device is connected and unlocked
- Enable USB debugging (Android) or trust the computer (iOS)
- Run
npx expo startto verify device detection
5. Expo Build Issues#
Error:
Prebuild failedSolution:
- Clean your project:
npx expo prebuild --clean - Check that all plugins are properly configured in
app.json - Verify your Expo SDK version is compatible
6. TypeScript Errors#
Error:
TypeScript compilation errorsSolution:
- Check that all TypeScript dependencies are installed
- Verify TypeScript version compatibility
- Run
npx tsc --noEmitto check for type errors
Next Steps#
Now that you have the examples running, you can:
- Study the Code: Examine the implementation patterns in the examples
- Test Features: Try different editor presets and configurations
- Customize Examples: Modify the examples to test your own use cases
- Integrate into Your Project: Use the examples as reference for your own implementation
- Explore Advanced Features: Test advanced editing capabilities
Related Guides#
- New Project Setup : Create a new React Native project with CreativeEditor SDK
- Existing Project Integration : Add CreativeEditor SDK to your existing React Native app
- Configuration Guide : Learn about advanced configuration options
Additional Resources#
Support#
If you encounter any issues or need assistance:
- Check the troubleshooting section above
- Review the GitHub repository issues
- Contact IMG.LY support for technical assistance
Congratulations! You’ve successfully cloned and are running the official CreativeEditor SDK React Native examples. You now have a comprehensive reference implementation to learn from and test available CreativeEditor SDK features.