-
-
Notifications
You must be signed in to change notification settings - Fork 411
Closed
Description
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]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels