Skip to content

Initial selected date/time bug #775

New issue

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

Open
Kyzfome opened this issue May 7, 2025 · 1 comment
Open

Initial selected date/time bug #775

Kyzfome opened this issue May 7, 2025 · 1 comment
Labels

Comments

@Kyzfome
Copy link

Kyzfome commented May 7, 2025

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}
/>

@Kyzfome Kyzfome added the bug label May 7, 2025
@DevNomadAbhi
Copy link

Same here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants