Skip to content

Initial selected date/time bug #775

@Kyzfome

Description

@Kyzfome

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions