react-native-photo-editor icon indicating copy to clipboard operation
react-native-photo-editor copied to clipboard

null is not an object(evaluating RNphotoeditor.Edit)

Open 16ntu1120 opened this issue 4 years ago • 1 comments

This is my code I'm having this issue and have no solution of this kindly help me with this.
const editor = () => { RNPhotoEditor.Edit({ --->issue is in this Edit function
path: RNFS.DocumentDirectoryPath + '/photo.jpg', stickers: [ 'sticker0', 'sticker1', 'sticker2', 'sticker3', 'sticker4', 'sticker5', 'sticker6', 'sticker7', 'sticker8', 'sticker9', 'sticker10', ], colors: undefined, onDone: () => { console.log('on done'); }, onCancel: () => { console.log('on cancel'); }, }); }

16ntu1120 avatar Oct 02 '20 13:10 16ntu1120

@16ntu1120
Use it this way instead of RNPhotoEditor

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

PhotoEditor.Edit(options)

Dheeeraj avatar Oct 08 '20 20:10 Dheeeraj