rn-photo-editor
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

rn-photo-editor

React Native photo editor is a wrapper around android photo editing library in android and a similar library in IOS

Installation

npm install rn-photo-editor

Usage

import PhotoEditor from "rn-photo-editor";
import { View } from "react-native"
import { useRef } from "react"

// ...

export const MyEditor = () => {
    const editorRef = useRef<PhotoEditor>()
    const handleSave = (resultUri: string) => {
        console.warn(resultUri)
    }

    return <View style={{height: 400, width:"100%"}}>
    <PhotoEditor 
    savePath={'result.png'} 
    resizeMode="contain" 
    onSaveResult={handleSave}
    src={{uri: 'https://i.imgur.com/DvpvklR.png'}} 
    ref={editorRef}/>
    </View>
}

Contributing

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

License

MIT

Package Sidebar

Install

npm i rn-photo-editor

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

14.3 MB

Total Files

204

Last publish

Collaborators

  • giles.fokam