photo-editor-v1
v0.0.32
Published
React Native Photo Editor Module
Maintainers
Readme
FC Photo Editor
A React Native module for photo editing capabilities.
Installation
npm install fc-photo-editor
# or
yarn add fc-photo-editoriOS
cd ios
pod install
cd ..Android
No additional setup required.
Usage
import FcPhotoEditor from 'fc-photo-editor';
// Open the photo editor
const result = await FcPhotoEditor.openEditor({
path: ['path/to/image.jpg'], // Array of image paths
stickers: [], // Array of sticker paths
canShowBrush: true, // Enable brush tool
canShowFilters: true, // Enable filters
canShowStickers: true, // Enable stickers
canShowTextInsertion: true, // Enable text insertion
canShowErase: true, // Enable eraser
});
console.log('Editor result:', result);API
openEditor(options: Object): Promise<Object>
Opens the photo editor with the specified options.
Options
| Option | Type | Description | | -------------------- | -------- | ---------------------------- | | path | string[] | Array of image paths to edit | | stickers | string[] | Array of sticker paths | | canShowBrush | boolean | Enable brush tool | | canShowFilters | boolean | Enable filters | | canShowStickers | boolean | Enable stickers | | canShowTextInsertion | boolean | Enable text insertion | | canShowErase | boolean | Enable eraser |
License
MIT
