This question already has an answer here:
In my React Native app I am displaying the following in a Text
string:
moment(new Date('2019-02-02 7:00:00')).format('h:mm A')
This works fine in an emulator, but returns "Invalid Date" on a real iOS device.
Does anyone know why this is happening and how I could resolve it?