DatePicker
Created a custom button using React Native's "TouchableOpacity" with variants
like primary, default, outline, etc.
Props
variant
| Type: |
string |
| Description: |
Specifies the style variant of the picker button, such as primary, default,
or outline.
|
<DatePicker variant="primary" ... />
style
| Type: |
Style Object |
| Description: |
Custom styles for the picker button. |
<DatePicker style={{ backgroundColor: 'blue' }} ... />
mainStyle
| Type: |
Style Object |
| Description: |
Provides main styling for the Picker button component. |
<DatePicker mainStyle={{ borderWidth: 1, borderColor: 'grey' }} ... />
icon
| Type: |
{ name: string; type: string; right: boolean; style: any }
|
| Description: |
Specifies the icon properties, including the icon name, type, optional
right alignment, and custom styles.
|
<DatePicker icon={{ name: 'calendar', type: 'AntDesign', right: true }} ... />