From c6d617365d5c84c9ad5008f3cb05836e9d280aac Mon Sep 17 00:00:00 2001 From: Farhoud Shapouran Date: Mon, 29 Jan 2024 14:04:49 +0300 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8cef8c5..f7391b4 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,14 @@ import DateTimePicker from 'react-native-ui-datepicker'; import dayjs from 'dayjs'; export default function App() { - const [value, setValue] = useState(dayjs()); + const [date, setDate] = useState(dayjs()); return ( setValue(date)} + mode="single" + date={value} + onChange={(params) => setDate(params.date)} /> )