You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
694 B

import { Platform, ViewPropTypes } from 'react-native'
import PropTypes from 'prop-types'
const androidProptypes = {
fadeToColor: PropTypes.string,
}
const DateType = PropTypes.instanceOf(Date)
export default {
...(Platform === 'android' ? androidProptypes : {}),
date: DateType.isRequired,
onChange: PropTypes.func,
minimumDate: DateType,
maximumDate: DateType,
mode: PropTypes.oneOf(['date', 'time', 'datetime']),
minuteInterval: PropTypes.oneOf(
1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30
),
locale: PropTypes.string,
textColor: PropTypes.string,
timeZoneOffsetInMinutes: PropTypes.number,
testID: ViewPropTypes.testID,
style: ViewPropTypes.style,
}