react-native-calendar-strip icon indicating copy to clipboard operation
react-native-calendar-strip copied to clipboard

Can I use this library without moment?

Open Saad-Bashar opened this issue 3 years ago • 3 comments

Seems like everyone is moving away from moment js. Is it possible to use this without installing moment?

Saad-Bashar avatar Jul 06 '21 01:07 Saad-Bashar

There have been a few requests to migrate to other date libraries. Moment is being obsoleted, so we need a plan forward. I recommend date-io which provides interfaces to all the major date libraries. This would enable RNCS to be agnostic, allowing people to use their favorite date library.

A PR to migrate to date-io would be very much appreciated.

peacechen avatar Jul 06 '21 01:07 peacechen

yes, you can use the component without moment.

NinjaAniket avatar Sep 20 '21 13:09 NinjaAniket

This seems to be stuck since almost two years now. dayjs is the one I'm using along with this library. dayjs is mostly compatible with moment's API. That would be the easiest to add, I believe.

durgaswaroop avatar May 12 '23 17:05 durgaswaroop