Skip to content

Commit

Permalink
Passing args to the cancel callback as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Estep committed Oct 13, 2018
1 parent 8ad53bd commit 284576c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RNPhotoEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class PhotoEditor extends PureComponent {
(...args) => {
props.onDone && props.onDone(...args);
},
() => {
props.onCancel && props.onCancel();
(...args) => {
props.onCancel && props.onCancel(...args);
}
);
}
Expand Down

0 comments on commit 284576c

Please sign in to comment.