We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android IOS
"react-native-modal-datetime-picker": "^18.0.0",
I am using the "date" attribute for my DateTimePickerModal. But unfortunately I am only getting the current date even if I have changed it.
const [date, setDate] = useState(new Date());
<DateTimePickerModal isVisible={isTimePickerVisible} mode="time" onConfirm={handleConfirmTime} onCancel={hideTimePicker} pickerStyleIOS={{ alignSelf: 'center' }} cancelTextIOS={i18n.t('cancel')} confirmTextIOS={i18n.t('save')} locale={i18n.locale} date={date} />
The text was updated successfully, but these errors were encountered:
Same here.
Sorry, something went wrong.
No branches or pull requests
Environment
Platforms
Android
IOS
Versions
"react-native-modal-datetime-picker": "^18.0.0",
Description
I am using the "date" attribute for my DateTimePickerModal. But unfortunately I am only getting the current date even if I have changed it.
Reproducible Demo
const [date, setDate] = useState(new Date());
<DateTimePickerModal
isVisible={isTimePickerVisible}
mode="time"
onConfirm={handleConfirmTime}
onCancel={hideTimePicker}
pickerStyleIOS={{ alignSelf: 'center' }}
cancelTextIOS={i18n.t('cancel')}
confirmTextIOS={i18n.t('save')}
locale={i18n.locale}
date={date}
/>
The text was updated successfully, but these errors were encountered: