|
@ -8,6 +8,10 @@ const androidPropTypes = { |
|
|
is24hourSource: PropTypes.oneOf(['locale', 'device']), |
|
|
is24hourSource: PropTypes.oneOf(['locale', 'device']), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const iOSPropTypes = { |
|
|
|
|
|
theme: PropTypes.oneOf(['light', 'dark', 'auto']), |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const modalPropTypes = { |
|
|
const modalPropTypes = { |
|
|
modal: PropTypes.bool, |
|
|
modal: PropTypes.bool, |
|
|
open: PropTypes.bool, |
|
|
open: PropTypes.bool, |
|
@ -21,7 +25,7 @@ const modalPropTypes = { |
|
|
const DateType = PropTypes.instanceOf(Date) |
|
|
const DateType = PropTypes.instanceOf(Date) |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
...(Platform === 'android' ? androidPropTypes : {}), |
|
|
|
|
|
|
|
|
...(Platform === 'android' ? androidPropTypes : iOSPropTypes), |
|
|
date: DateType.isRequired, |
|
|
date: DateType.isRequired, |
|
|
onChange: PropTypes.func, |
|
|
onChange: PropTypes.func, |
|
|
minimumDate: DateType, |
|
|
minimumDate: DateType, |
|
|