Skip to content

don't show the date when i change the value #494

@rediff666

Description

@rediff666

Describe the bug
I can't get the new value of the date in a Text Object or Alert message

To Reproduce
const [date, setDate] = useState(new Date())
const [open, setOpen] = useState(false)

return (
<>
Date Value : {date.toString()}
<Button title="Open" onPress={() => setOpen(true)} />
<DatePicker
modal
open={open}
date={date}
onConfirm={(date) => {
setOpen(false)
setDate(date)
}}
onCancel={() => {
setOpen(false)
}}
/>
</>
)
}


**Smartphone (please complete the following information):**
 - OS: [Android or iOS]
 - React Native version [e.g. 0.59.4]
 - react-native-date-picker version [e.g. 2.5.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions