|
@ -1,14 +1,15 @@ |
|
|
import React from 'react' |
|
|
import React from 'react' |
|
|
import { Platform, Appearance } from 'react-native' |
|
|
|
|
|
import DatePickerIOS from './DatePickerIOS' |
|
|
|
|
|
|
|
|
import { Platform, Appearance, Text } from 'react-native' |
|
|
import DatePickerAndroid from './DatePickerAndroid' |
|
|
import DatePickerAndroid from './DatePickerAndroid' |
|
|
import propTypes from './propTypes' |
|
|
import propTypes from './propTypes' |
|
|
import { colorToHex } from './colorToHex' |
|
|
import { colorToHex } from './colorToHex' |
|
|
import { throwIfInvalidProps } from './propChecker' |
|
|
import { throwIfInvalidProps } from './propChecker' |
|
|
|
|
|
import DatePickerIOS from './DatePickerIOS' |
|
|
|
|
|
|
|
|
const DatePicker = Platform.select({ |
|
|
const DatePicker = Platform.select({ |
|
|
android: DatePickerAndroid, |
|
|
android: DatePickerAndroid, |
|
|
ios: DatePickerIOS, |
|
|
ios: DatePickerIOS, |
|
|
|
|
|
default: () => <Text>DatePicker is not supported on this platform.</Text>, |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
DatePicker.propTypes = propTypes |
|
|
DatePicker.propTypes = propTypes |
|
|