Skip to content

Commit

Permalink
fix(ux): Add Back button event on ImageZoom component (#519)
Browse files Browse the repository at this point in the history
In android is quite common uses back button action to close a modal
  • Loading branch information
jouderianjr authored and Houssein Djirdeh committed Oct 21, 2017
1 parent 7bfbf9a commit 2ff7a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/image-zoom.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class ImageZoom extends Component {

if (this.state.imgZoom) {
return (
<Modal animationType={'fade'} onRequestClose={() => null}>
<Modal animationType={'fade'} onRequestClose={() => this.closeModal()}>
<View style={styles.modalContainer}>
<PhotoView
resizeMode={'contain'}
Expand Down

0 comments on commit 2ff7a23

Please sign in to comment.