I am trying to weigh up the benefits of converting moment
to date-fns
.
Moment is currently 316k
or 67.6k
gzipped.
react-native or more specifically, the metro-bundler that comes with react-native by default doesn't yet support tree-shaking!
According to comments in the following link, it's supposed to be implemented in the first half of this year (2019!).
Source: https://github.com/facebook/metro/issues/227