npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@phucprime/react-native-image-editor

v1.0.4

Published

React Native: Native Image Editor for iOS and Android with drawing, text, stickers, cropping and more

Readme


⚡ Features

  • ✂️ Image Cropping: Precision native cropping UI.
  • 🎨 Freehand Drawing: Brush tool with custom color choices.
  • ✍️ Text Overlays: Add, position, scale, and rotate text with custom colors.
  • 🎭 Stickers: Add customizable sticker overlays.
  • 🚀 TurboModules Support: Native performance on React Native New Architecture.

📱 Screenshots

| iOS | Android | | :--------------------------------------: | :------------------------------------------: | | | |


📋 Compatibility

| Platform / Tool | Minimum | Tested | | ---------------- | ----------- | --------------- | | React Native | >= 0.73 | 0.78.2 | | React | >= 18.2.0 | 19.0.0 | | iOS | 13.0 | 18.0 | | Android | API 24 | API 35 | | Architecture | Old Arch ✅ | New Arch ✅ |

Note: Requires JDK 17 and Gradle 8.x for Android builds.


📦 Installation

npm install @phucprime/react-native-image-editor
# or
yarn add @phucprime/react-native-image-editor

iOS

Add to your Podfile:

use_frameworks! :linkage => :static
pod "iOSPhotoEditor", :git => "https://github.com/phucprime/photo-editor", :branch => "master"

Then run pod install.

Add to Info.plist:

<key>NSPhotoLibraryAddUsageDescription</key>
<string>Allow access to save edited photos</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Allow access to select photos for editing</string>

Android

Add JitPack to your root android/build.gradle:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

Add activities to AndroidManifest.xml:

<activity android:name="com.ahmedadeltito.photoeditor.PhotoEditorActivity" />
<activity android:name="com.yalantis.ucrop.UCropActivity" />

🛠️ Usage

Promise API (recommended)

import { ImageEditor } from '@phucprime/react-native-image-editor';

const editedPath = await ImageEditor.edit('/path/to/image.jpg', {
  colors: ['#ff0000', '#00ff00', '#0000ff'],
  stickers: ['sticker1', 'sticker2'],
});

Callback API

ImageEditor.open({
  path: '/path/to/image.jpg',
  onDone: (path) => console.log('Saved:', path),
  onCancel: () => console.log('Cancelled'),
});

⚙️ Configuration Options

| Property | Type | Default | Description | | ---------------- | ---------- | --------------- | ------------------------------------------------------------------------------------------------------ | | path | string | Required | Local file URI/path of the image to edit. | | colors | string[] | Default palette | Array of hex color strings for drawing and text. | | stickers | string[] | [] | List of sticker image names located in native resource folders. | | hiddenControls | string[] | [] | Array of controls to hide ('text', 'clear', 'draw', 'save', 'share', 'sticker', 'crop'). | | languages | object | English | Object map for localized UI text strings. |

Tip: Use react-native-fs or @react-native-camera-roll/camera-roll to handle native file paths in sandbox directories before passing them to the editor.


🎨 Adding Custom Stickers

  • iOS: Add image assets (.png) to your main Xcode Project's Resources bundle.
  • Android: Add image assets (.png) to android/app/src/main/res/drawable/.
Refer to the Example project for a ready-to-run demonstration setup.

📄 License

Distributed under the Apache 2.0 License.


🙏 Credits

Maintained by nguyenhoangphucvnm. Based on prscX/react-native-photo-editor, built upon native photo editor SDKs.