Skip to content

Commit

Permalink
close modal player when click back button
Browse files Browse the repository at this point in the history
  • Loading branch information
listen1 committed Oct 31, 2020
1 parent f58cd29 commit 368c3cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/player/modal-player-container.screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ class ModalPlayerContainer extends React.Component {
const deviceHeight = Dimensions.get('window').height;

return (
<Modal visible={this.props.modalState.isOpen}>
<Modal
visible={this.props.modalState.isOpen}
onRequestClose={() => {
this.props.dispatch(toggleModal());
}}
>
<ModalPlayer />
</Modal>
);
Expand Down

0 comments on commit 368c3cb

Please sign in to comment.