From befe55a29325069ee62e65769876b3e447f0480f Mon Sep 17 00:00:00 2001 From: Pranav Chauhan Date: Sat, 7 Dec 2019 17:21:20 +0530 Subject: [PATCH] - adding support for hiding controls --- Example/App.js | 46 +++++++++++++++++++++++----------------------- package.json | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Example/App.js b/Example/App.js index 42c71eaf..9adaacc4 100755 --- a/Example/App.js +++ b/Example/App.js @@ -19,29 +19,29 @@ type Props = { export default class App extends Component { _onPress = () => { RNPhotoEditor.Edit({ - path: RNFS.DocumentDirectoryPath + '/photo.jpg', - stickers: [ - 'sticker0', - 'sticker1', - 'sticker2', - 'sticker3', - 'sticker4', - 'sticker5', - 'sticker6', - 'sticker7', - 'sticker8', - 'sticker9', - 'sticker10' - ], - hiddenControls: [], - colors: undefined, - onDone: () => { - console.log('on done') - }, - onCancel: () => { - console.log('on cancel') - } - }) + path: RNFS.DocumentDirectoryPath + '/photo.jpg', + stickers: [ + 'sticker0', + 'sticker1', + 'sticker2', + 'sticker3', + 'sticker4', + 'sticker5', + 'sticker6', + 'sticker7', + 'sticker8', + 'sticker9', + 'sticker10', + ], + // hiddenControls: ['clear', 'crop', 'draw', 'save', 'share', 'sticker', 'text'], + colors: undefined, + onDone: () => { + console.log('on done'); + }, + onCancel: () => { + console.log('on cancel'); + }, + }); } componentDidMount() { diff --git a/package.json b/package.json index daa4e1bf..5363a8fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-photo-editor", - "version": "1.0.3", + "version": "1.0.4", "description": "React Native: Native Photo Editor", "main": "RNPhotoEditor.js", "homepage": "https://github.com/prscX/react-native-photo-editor.git",