Skip to content

Conversation

@CharlesBither
Copy link
Collaborator

This PR refactors the time picker modal according to the feedback on #78 (comment) .

Screenshot_1765148666 Screenshot_1765148702

Below, are the key changes:

  • The react-native-paper-dates module has been replaced with react-native-date-picker. Instead of a clock modal, a bottom-sheet style modal is now displayed, allowing the user to select a time by using a scroll picker.

    • react-native-date-picker was chosen instead of more popular libraries such as react-native-community/datetimepicker so that the picker can be displayed inline on android, as opposed to being displayed as a dialog.

    • The latest version of the library (5.0.13) has compatibility issues with the latest version of RN, causing a "Module provider RNDatePickerManager does not conform to RCTModuleProvider" error on ios as described here. This patch fixes the issue and can be found in our project under /patches. The patch is automatically applied during npm install.

  • Rather than updating the database whenever an availability is inserted or deleted from the page, these actions are now applied to the page immediately. The database is only updated when the user presses the "Save" button. Additionally, the save button is disabled if no changes have been made to the page.

  • The DayIcon component is now used instead of the MaterialCommunityIcons to better match the theme of the app.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is the patch described in this PR's description.

Copy link
Collaborator

@SpencerJohnson9904 SpencerJohnson9904 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Got packages setup to pass CI, the new page looks great!

@SpencerJohnson9904 SpencerJohnson9904 merged commit 3ff75df into main Dec 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants