Skip to main content
This guide is for React.js applications (Create React App, Vite, custom setups).For Next.js, see the Next.js ImageEditor Integration guide.
This page still describes the version 1 setup. In version 2 (@layermetry/media-editor 2.0.0) React is no longer pinned to 18.2.0 — React 18 and React 19 both work, and the editor also runs with no React at all, so Next.js 15 is fine.Follow Installation for the version 2 setup. This page is being rewritten.

Prerequisites

Node.js 18+

Node.js 18 or newer

React 18 or 19

React 18 or React 19 — both work. Version 2 does not pin React.

Installation

1

Install the SDK

2

Install Required Dependencies

3

Verify React Version

Check your React version:
If you need to install React 18.2.0:

Basic Setup

Import SDK Styles

Add the SDK CSS to your application entry point:

Import the Editor

ImageEditor Interface

Core Props

Step-by-Step Integration

Step 1: Create Your Component

src/components/ImageStudio.js

Step 2: Implement File Selection

Step 3: Implement Callbacks

Step 4: Render the Editor

Theme Customization

Creating a Custom Theme

Applying the Theme

Complete Example

src/components/ImageStudio.js

Next Steps

Video Editor

Learn how to integrate the VideoEditor component

FAQ

Common issues and troubleshooting
Need help? Contact us at support@layermetry.com