Skip to content

Commit

Permalink
Merge pull request #152 from farhoudshapouran/v3
Browse files Browse the repository at this point in the history
fix: set current date based on selected date changes
  • Loading branch information
farhoudshapouran authored Feb 18, 2025
2 parents 894eda0 + 2ab3f84 commit 909b82a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-ui-datepicker",
"version": "3.0.0",
"version": "3.0.1",
"description": "Customizable date picker for React Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
1 change: 1 addition & 0 deletions src/datetime-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ const DateTimePicker = (
return {
...prevState,
date: selectedDate,
currentDate: selectedDate,
};
case CalendarActionKind.CHANGE_SELECTED_RANGE:
const { startDate: start, endDate: end } = action.payload;
Expand Down

0 comments on commit 909b82a

Please sign in to comment.