Skip to content

Commit

Permalink
fix: Add minimum and maximum dates prop types (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
brightsider authored Feb 5, 2020
1 parent a5002e3 commit bd20873
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/DateTimePickerModal.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export default class DateTimePickerModal extends React.PureComponent {
isVisible: PropTypes.bool,
onCancel: PropTypes.func.isRequired,
onConfirm: PropTypes.func.isRequired,
onHide: PropTypes.func
onHide: PropTypes.func,
maximumDate: PropTypes.instanceOf(Date),
minimumDate: PropTypes.instanceOf(Date)
};

static defaultProps = {
Expand Down
4 changes: 3 additions & 1 deletion src/DateTimePickerModal.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export default class DateTimePickerModal extends React.PureComponent {
onCancel: PropTypes.func.isRequired,
onConfirm: PropTypes.func.isRequired,
onChange: PropTypes.func,
onHide: PropTypes.func
onHide: PropTypes.func,
maximumDate: PropTypes.instanceOf(Date),
minimumDate: PropTypes.instanceOf(Date)
};

static defaultProps = {
Expand Down

0 comments on commit bd20873

Please sign in to comment.