Skip to content

Commit

Permalink
fix(modal): onRequestClose prop warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Sep 15, 2017
1 parent 2f4e534 commit aefb6cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/image-zoom.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class ImageZoom extends Component {

if (this.state.imgZoom) {
return (
<Modal animationType={'fade'}>
<Modal animationType={'fade'} onRequestClose={() => null}>
<View style={styles.modalContainer}>
<PhotoView
resizeMode={'contain'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const styles = StyleSheet.create({
});

export const LoadingModal = () =>
<Modal transparent>
<Modal transparent onRequestClose={() => null}>
<View style={styles.container}>
<ActivityIndicator />
</View>
Expand Down

0 comments on commit aefb6cc

Please sign in to comment.