Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
farhoudshapouran authored Jan 29, 2024
1 parent b9b41ec commit c6d6173
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<View style={styles.container}>
<DateTimePicker
value={value}
onChange={(date) => setValue(date)}
mode="single"
date={value}
onChange={(params) => setDate(params.date)}
/>
</View>
)
Expand Down

0 comments on commit c6d6173

Please sign in to comment.