import * as React from 'react' ; import { StyleSheet } from 'react-native' ; import { BaseDateTimePicker } from './basepicker' ; import { IosDatetimePickerProps } from './types' ; export const DatePicker = ( props ) : JSX . Element => { let showPickeriOS = true ; return ( < BaseDateTimePicker initialDate = { props . initialDate } minuteInterval = { props . minuteInterval } mode = { props . mode } onDateChange = { props . onDateChange } showPickeriOS = { showPickeriOS } style = { defaultStyle . datePicker } / > ) ; } ; const defaultStyle = StyleSheet . create ( { datePicker : { minWidth : 120 , } , } ) ;