Skip to content

Commit

Permalink
- adding support for hiding controls
Browse files Browse the repository at this point in the history
  • Loading branch information
prscms committed Dec 7, 2019
1 parent 30c9afb commit befe55a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
46 changes: 23 additions & 23 deletions Example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,29 @@ type Props = {
export default class App extends Component<Props> {
_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() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit befe55a

Please sign in to comment.