Skip to content

Fix: Extend dayjs calendar plugin #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WilsonWilson
Copy link

This PR adds the missing extension for the calendar plugin in dayjs inside the datetime-picker.tsx file. Without this, calling dayjs(currentDate).calendar(calendar) results in a runtime TypeError: calendar is not a function.

Extending the plugin fixes the crash, especially after Expo Prebuild or in native Dev Client setups where dayjs plugins must be manually extended.

Thank you for your awesome work on this package! 🙌

This PR adds the missing extension for the calendar plugin in dayjs inside the datetime-picker.tsx file.
Without this, calling dayjs(currentDate).calendar(calendar) results in a runtime TypeError: calendar is not a function.

Extending the plugin fixes the crash, especially after Expo Prebuild or in native Dev Client setups where dayjs plugins must be manually extended.

Thank you for your awesome work on this package! 🙌
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.

1 participant