Compatibility between Expo and Moment.js

#1

Hello,

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 ?

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

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

0 Likes

closed #5

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

0 Likes