πŸŒ„ Photo editor using native modules for iOS and Android. Inherit from 2 available libraries, Brightroom (iOS) and PhotoEditor (Android)

Overview

React Native Photo Editor (RNPE)

πŸŒ„ Image editor using native modules for iOS and Android. Inherit from 2 available libraries, Brightroom (iOS) and PhotoEditor (Android)

Note

The difference between the 2 platforms is huge - Be careful when using
This lib is for personal use, so if you customize your style or change something, Please fork this library and check the detailed documentation in the original library:

During the development of this package. I was thinking of moving it as part of an earlier library that I finished. If the support community for this library was large enough, I would have to dismiss this idea immediately.

Feature πŸ™ˆ

iOS

Android

  • Drawing on image with option to change its Brush's Color, Size, Opacity, Erasing and basic shapes.
  • Apply Filter Effect on image using MediaEffect
  • Adding/Editing Text with option to change its Color with Custom Fonts.
  • Adding Emoji with Custom Emoji Fonts.
  • Adding Images/Stickers
  • Pinch to Scale and Rotate views.
  • Undo and Redo for Brush and Views.
  • Deleting Views

ScreenShot πŸ‘‰ πŸ‘ˆ

iOS Android

Requirements

  • Swift 5.3 (Xcode12.4+)
  • iOS 12+

Installation

yarn add @baronha/react-native-photo-editor && cd ios/ && pod install && cd..

Don't forget add file .swift in your project (and create bridging header file swift).

Usage

import PhotoEditor from "@baronha/react-native-photo-editor";

// ...

const result = await PhotoEditor.open(Options);

Options

Property Type Default value Platform Description
uri string required both Local image path

Filters πŸ¦‹

iOS Android

Custom Filters(iOS)

LUT (Hald image)

How to create cube data from LUT Image

We can download the neutral LUT image from lutCreator.js.

Hald Images

Hald is a graphical representation of 3D LUT in a form of a color table which contains all of the color gradations of 3D LUT. If Hald is loaded into editing software and a color correction is applied to it, you can use 3D LUT Creator to convert your Hald into 3D LUT and apply it to a photo or a video in your editor.

Detailed documentations are available on here

IMPORTANT You have to copy this folder and paste in Xcode root folder See Example

To Do

  • Customize.
  • Sync between two platforms.

Performance

We're trying to improve performance. If you have a better solution, please open a issue or pull request. Best regards!

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Comments
  •  Showing All Errors Only Undefined symbol: (extension in Accelerate):__C.vImage_Buffer.free() -> ()

    Showing All Errors Only Undefined symbol: (extension in Accelerate):__C.vImage_Buffer.free() -> ()

    Hi, I am using this plugin for react native app which is used for editing image in both android and ios. It is working fine for android but for ios it is giving this error Showing All Errors Only Undefined symbol: (extension in Accelerate):__C.vImage_Buffer.free() -> () $defer #1 () -> () in (extension in react_native_photo_editor):__C.UIImage.resize_vI(__C.CGSize) -> __C.UIImage? in libreact-native-photo-editor.a(UIImage+ZLImageEditor.o) ld: symbol(s) not found for architecture x86_64

    I have done the setup mentioned in the doc.

    opened by grvsingh789 5
  • Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15

    Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15

    Hi, I got error on invalid Kotlin version when running react-native run-android

    React Native version: 0.69.3

    e: /Users/wilson/work/carlink/CarlinkApp/node_modules/@baronha/react-native-photo-editor/android/src/main/java/com/reactnativephotoeditor/activity/PhotoEditorActivity.kt: (105, 5): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.

    opened by wilsontwm 4
  • Issue compiling on xcode 12.4

    Issue compiling on xcode 12.4

    I seems that the ZLImage editor lib causes a swift compile error here: https://github.com/baronha/react-native-photo-editor/blob/master/ios/ZLImageEditor/Sources/General/ZLEditImageViewController.swift#L289

    I am seeing the error "Type of expression is ambiguous without more context"

    opened by jonotrybe 2
  • requiresMainQueueSetup warning

    requiresMainQueueSetup warning

    Module PhotoEditor requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`. 
    In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.
    

    I am seeing this warning every time the app launches, please investigate.

    This seems to be a solution, but I can't find which file to edit for this library.

    opened by kockok 1
  • Example project - Unable to resolve @babel/runtime (iOS)

    Example project - Unable to resolve @babel/runtime (iOS)

    Tried to build and run project in example folder, but stucks after run: Unable to resolve module @babel/runtime/helpers/interopRequireDefault

    Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2021-11-28 Π² 20 08 09

    Even when i cleaned cache or reinstalled node_modules.

    Environment: Platform - iOS XCode - Version 13.1 React Native - 0.64.2 npm - 8.1.4

    opened by vladimirevstratov 1
  • How to use luts

    How to use luts

    Hi there, I'm trying to embed the editor into my app. The editor does work but there are no filters available besides the default "normal". I think I have put the LUTS files under /ios/LUTs as the example does.

    image

    Am I missing something?

    opened by chitosai 1
  • Problem facing in installation

    Problem facing in installation

    I'm getting this error while I run the command pod install in iOS folder

    [!] CocoaPods could not find compatible versions for pod "react-native-photo-editor": In Podfile: react-native-photo-editor (from ../node_modules/@baronha/react-native-photo-editor)

    Specs satisfying the react-native-photo-editor (from../node_modules/@baronha/react-native-photo-editor) dependency were found, but they required a higher minimum deployment target.

    please help me

    react-native version latest platform :ios, '11.0'

    opened by aloksingh0308 1
  • Not open a local image by uri

    Not open a local image by uri

    On IOS I can not open the photo editor by .open() when I use local path URI ( it works by remote URL )

    example: path: "file:///Users/abc/Library/Developer/CoreSimulator/Devices/EEA5C63E-7295-4A7A-B170-44827A3648C8/data/Containers/Data/Application/773955FB-5A11-4C0C-9744-C3E3DBD6AC0D/tmp/C772C64E-6113-47A3-8CCE-898E52CB0FB9.jpg"

    Could you help me how to show the editor when using a URI local or captured by the camera?

    opened by windcloudit 0
  • Android crashing after edit and hit save button

    Android crashing after edit and hit save button

    Fatal Exception: java.lang.RuntimeException An error occurred while executing doInBackground() android.os.AsyncTask$4.done (AsyncTask.java:399)

    java.lang.Thread.run (Thread.java:919)

    Caused by java.lang.IndexOutOfBoundsException Index: 1, Size: 0 java.util.ArrayList.get (ArrayList.java:437)

    android.view.View.draw (View.java:23185) ja.burhanrashid52.photoeditor.PhotoSaverTask.captureView (PhotoSaverTask.java:161) ja.burhanrashid52.photoeditor.PhotoSaverTask.buildBitmap (PhotoSaverTask.java:104) ja.burhanrashid52.photoeditor.PhotoSaverTask.saveImageInFile (PhotoSaverTask.java:88) ja.burhanrashid52.photoeditor.PhotoSaverTask.doInBackground (PhotoSaverTask.java:70) ja.burhanrashid52.photoeditor.PhotoSaverTask.doInBackground (PhotoSaverTask.java:23)

    Screenshot 2022-11-29 at 10 44 44 AM

    I see same issue in native library too => https://github.com/burhanrashid52/PhotoEditor/issues/374 Can you look into this please @baronha

    opened by mahmed101 0
  •  Error when building or after installing the library: Task :@baronha_react-native-photo-editor:compileReleaseKotlin FAILED

    Error when building or after installing the library: Task :@baronha_react-native-photo-editor:compileReleaseKotlin FAILED

    As soon as I run yarn run android the library breaks, and it doesn't let me build it, the error is this: FAILURE: Build failed with an exception.

    • What went wrong: Execution failed for task ':baronha_react-native-photo-editor:compileDebugKotlin'.

    Compilation error. See log for more details

    • Try:

    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

    • Get more help at https://help.gradle.org
    opened by Groisa 0
Releases(v1.1.2)
Owner
Baron Ha.
Baron Ha.
πŸ“²πŸ’¬ react-native-fontext is a lightweight library to integrate fonts in your React Native application that works seamlessly in android and iOS devices.

React Native Fontext react-native-fontext is a lightweight library to integrate fonts in your React Native application that works seamlessly in androi

mroads 9 Dec 3, 2021
Matomo wrapper for React-Native. Supports Android and iOS. Fixed issues for native platforms build that are present in the official package.

@mccsoft/react-native-matomo Matomo wrapper for React-Native. Supports Android and iOS. Fixed issues for native platforms build that are present in th

MCC Soft 4 Dec 29, 2022
Wallpaper4kapp - Wallpaper app get photo using Api From pexels

wallpaper4kapp this is wallpaper app , get photo using Api From https://api.pexe

Hazem Allaham 2 May 28, 2022
Warning on new versions available even when using Kotlin-DSL plugin.

Version Checker Gradle Lint Warning on new versions available even when using Kotlin-DSL plugin. This detector checks with a central repository to see

null 93 Nov 26, 2022
Android Kotlin Fundamentals: 02.3 ConstraintLayout using the Layout Editor

ColorMyViews Android Kotlin Bootcamp from Google Developer website Android Kotli

Marcelo Viana 0 Feb 13, 2022
A multi-modular Gradle project that encapsulates various modules to learn Kotlin language, tools and frameworks.

KotlinLearn This is a gradle project for the sole basis of exploring and learning Kotlin language, tools and frameworks. The root project wil encapsul

Victor Kiprop 2 Oct 10, 2021
Quick photo and video camera with a flash, customizable resolution and no ads.

Simple Camera A camera with flash, zoom and no ads. The camera is usable for both photo taking and video recording. You can switch between front and r

Simple Mobile Tools 644 Dec 26, 2022
Android application that allows users to take or import photo of chessboard, recognizes the pieces and generate the Forsyth-Edwards Notation.

β™› ChessBoard Importer Frontend β™› Repository for the frontend part of project "Chessboard Importer". The project is realized by the team of 4 students

null 8 Feb 26, 2022
Browse your memories without any interruptions with this photo and video gallery

Simple Gallery Simple Gallery Pro is a highly customizable lightweight gallery loved by millions of people for its great user experience. Organize and

Simple Mobile Tools 2.8k Jan 4, 2023
An app that is a one-stop destination for all the CS enthusiasts, providing resources like Information scrapping techniques, best YT channels, courses available free-of-cost, etc. & knowledge about every domain and field that exists on the Internet related to Computer Science along with News, Jobs, and Internships opportunities in these domains along with valuable tips and hacks from mentors for a particular domain.

An app that is a one-stop destination for all the CS enthusiasts, providing resources like Information scrapping techniques, best YT channels, courses available free-of-cost, etc. & knowledge about every domain and field that exists on the Internet related to Computer Science along with News, Jobs, and Internships opportunities in these domains along with valuable tips and hacks from mentors for a particular domain.

CSwala 48 Nov 26, 2022
android-delicious Delicious Android is an Android app which helps you access and save bookmarks via Delicious. It's available over at Google Play.

Delicious Android Delicious Android is an Android app which helps you access and save bookmarks via Delicious. It's available over at Google Play. Fea

Alexander Blom 137 Nov 20, 2022
Android app for monitoring web services. Notifies you of any HTTP or Onion destination not being available.

Webmon Monitor web services and get notified, if a service becomes unavailable. EARLY BIRD DOWNLOAD App Features Simple UI. No login required. Get not

null 36 Dec 29, 2022
KKM (Katalog Kos Moklet) mobile app to see any available kos (boarding house) at moklet

KKM (Katalog Kos Moklet) mobile app to see any available "kos" (boarding house) at moklet

Raviolini 1 Jun 1, 2022
IND appointment checker helps you to find some available slots in IND website.

IND Appointment Checker What is IND? The Immigration and Naturalisation Service (IND) assesses all residence permit applications from the people who w

Ufuk Halis 3 Oct 18, 2022
Turtle Graphics 🐒 implementation for Android Platform with Code Editor, Preview Screen and packages

Turtle Graphics Download Turtle is an Android Application inspired from the original Turtle Graphics and Logo, Logo is an educational programming lang

Amr Hesham 15 Dec 30, 2022
An advanced DEX editor for Android.

An advanced DEX editor for Android.

Mike Anderson 75 Jan 3, 2023
A capable β€” pixel art editor for Android.

A capable β€” pixel art editor for Android.

thebluepandabear 128 Dec 31, 2022
APK Explorer & Editor, an open-source tool to explore the contents of an installed APK

APK Explorer & Editor, an open-source tool to explore the contents of an installed APK, is strictly made with an aim to inspect an installed APK file.

APK Explorer & Editor 270 Dec 25, 2022