Compatibility between Expo and Moment.js


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


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

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.