rn-photo-editor
v0.1.1
Published
React Native photo editor is a wrapper around android photo editing library in android and a similar library in IOS
Downloads
7
Readme
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