Skip to content

Commit

Permalink
fix: Rename onModalHide to onHide Modal prop to make onHide callback …
Browse files Browse the repository at this point in the history
…work on iOS (#316)
  • Loading branch information
cryser29 authored and mmazzarolo committed Nov 28, 2019
1 parent 04d7161 commit 9cc80ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DateTimePickerModal.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class DateTimePickerModal extends React.PureComponent {
this.props.onConfirm(this.state.currentDate);
};

handleModalHide = () => {
handleHide = () => {
// Deprecated
const {
onModalHide, // Deprecated
Expand Down Expand Up @@ -175,7 +175,7 @@ export default class DateTimePickerModal extends React.PureComponent {
isVisible={isVisible}
contentStyle={[pickerStyles.modal, modalStyleIOS]}
onBackdropPress={this.handleCancel}
onModalHide={this.handleModalHide}
onHide={this.handleHide}
>
<View
style={[
Expand Down

0 comments on commit 9cc80ab

Please sign in to comment.