Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-native-photo-editor

> 前端框架
Open source

React Native: Native Photo Editor

1.1K stars0 likes1 views
WebsiteGitHub

About

React Native: Native Photo Editor

ReactNative: Native Photo Editor (Android/iOS)

If this project has helped you out, please support us with a star

This library is a React Native bridge around native photo editor libraries. It allows you to edit any photo by providing below set of features:

  • Cropping
  • Adding Images -Stickers-
  • Adding Text with Colors
  • Drawing with Colors
  • Scaling and Rotating Objects
  • Deleting Objects
  • Saving to Photos and Sharing
  • Cool Animations

Getting started

$ yarn add react-native-photo-editor

This library is supported React Native V61 and above

  • iOS

iOS Prerequisite: Please make sure CocoaPods is installed on your system

- Add the following to your `Podfile` -> `ios/Podfile` and run pod update:
…
  • Please make sure Flipper iOS Setup Guidelines steps are added to Podfile, since iOSPhotoEditor is implemented using Swift and we have to use use_frameworks! in Podfile

  • If using React Native Firebase v6+, please see Troubleshooting section for a known issue before moving further.

  • Add below property to your info.list

	NSPhotoLibraryAddUsageDescription
	Application needs permission to write photos...

	
	NSPhotoLibraryUsageDescription
	iOS 10 needs permission to write photos...
  • Android

  • Please add below script in your build.gradle

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

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
        ...
    }
}
  • Add below activity in your app activities:

`

`

  • To save image to the public external storage, you must request the WRITE_EXTERNAL_STORAGE permission in your manifest file:

``

⛄️ Stickers

If you want stickers, please add them to your native project:

  • iOS: Add stickers to iOS Resources folder
  • Android: Add stickers to app drawable folder

Refer Example project for the same.

Usage

import PhotoEditor from 'react-native-photo-editor'

PhotoEditor.Edit({
    path: RNFS.DocumentDirectoryPath + "/photo.jpg"
});
  • Purpose of this library is to edit photos which are within app sandbox, we recommend to move captured image to app sandbox then using RNFS share image path with library for the edit.
  • Example: If we capture image through cameraRoll then we should first move image to app sandbox using RNFS then share app storage path with the editor.

Props

  • General(iOS & Android)
Prop Type Default Note
path: mandatory string Specify image path you want to edit
hiddenControls array Specify editor controls you want to hide [clear, crop, draw, save, share, sticker, text]
stickers array Specify stickers you want to show in stickers picker
colors array: HEX-COLOR [#000000, #808080, #a9a9a9, #FFFFFF, #0000ff, #00ff00, #ff0000, #ffff00, #ffa500, #800080, #00ffff, #a52a2a, #ff00ff] Specify colors you want to show for draw/text
onDone func Specify done callback
onCancel func Specify cancel callback

Troubleshooting

If using React Native Firebase v6+ or facing any of the following issues: #104, #93

  • Add the following to your podfile -> ios/podfile and run pod install
pre_install do |installer|
  installer.pod_targets.each do |pod|
    if pod.name.start_with?('RNFB')
      def pod.build_type;
        Pod::BuildType.static_library
      end
    end
  end
end
  • If the above doesn't work, try the following and and re-run pod install:

As @react-native-firebase documentation you should add following to top of the Podfile for Allow iOS Static Frameworks

$RNFirebaseAsStaticFramework = true

_swift_FORCE_LOAD$_swiftUniformTypeIdentifiers / _swift_FORCE_LOAD$_swiftCoreMIDI

✨ Credits

  • Android Photo Editor: eventtus/photo-editor-android
  • iOS Photo Editor: eventtus/photo-editor

How to contribute

Have an idea? Found a bug? Please raise to ISSUES. Contributions are welcome and are greatly appreciated! Every little bit helps, and credit will always be given.

Where is this library used?

If you are using this library in one of your projects, add it in this list below. ✨

License

This library is provided under the Apache 2 License.

RNPhotoEditor @ prscX

Support my projects

I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).

However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:

  • Starring and sharing the projects you like

  • If you're feeling especially charitable, please follow prscX on GitHub.

    Thanks! ❤️

    prscX.github.io

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroidiosreact-native

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架