import React from 'react'; import DatePicker from 'react-native-datepicker'; import {View, StyleSheet, TextInputProps} from 'react-native'; interface TaggDatePickerProps extends TextInputProps { width?: number | string; date?: string; maxDate?: Date | string; } /** * An input component that receives all props a normal TextInput component does. TaggInput components grow to 60% of their parent's width by default, but this can be set using the `width` prop. */ const TaggDatePicker = React.forwardRef( (props: TaggDatePickerProps, ref: any) => { return ( ); }, ); const styles = StyleSheet.create({ container: { width: '100%', alignItems: 'center', marginVertical: 11, }, input: { minWidth: '67%', height: 40, }, }); export default TaggDatePicker;