Compatibility between Expo and Moment.js

Hello,

I would like to calculate the “time ago” messages as in the following screenshot :

Startups_FR_–_Le_coin_technique

Moment.js javascript library seems to do that. Is it possible to import it in my expo project ?

Hi, I’d recommend looking at this library instead of moment https://github.com/date-fns/date-fns

Hi ! I finally took date-fns ! Great lib.

moment also works fine with Expo, for what it’s worth - it’s plain JS

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.