When I was using jsc
Engine, everything was working fine but when I shifted from jsc
engine to Hermes
Engine in my react native app I started getting Invalid date where I was using moment.
CODE:
const defaultDate = moment(currentTimeStamp).format("YYYY/MM/DD"); //till this it works fine
return moment(defaultDate).toDate().getTime(); // throws INVALID DATE