I have found the answer on the following Gist.
To utilize it, I've built a simple module that returns the number of seconds since the OS was started.
Here is the Github repository.
The usage is as following:
import RelativeTime from 'react-native-relative-time';
and:
RelativeTime.getRelativeTime()
.then(ticks => console.log(ticks);
It returns the number of seconds since the OS started:
- Restarting the Android simulator resets the value returned (as expected)
- Restaring the iOS simulator seems to keep the value. Probably means the value which is returned is the Mac's uptime.
- Changing the device's time does not change the value returned (as expected)

