Skip to content

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! 🙌
@ivanatnine30
Copy link

As an expo user i can confirm this works properly

@DimaIvashchuk
Copy link

@farhoudshapouran hey! can you please review this changes as its a huge blocker for expo sdk 53 users

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