Helpful utility functions that don’t fit anywhere else, including some localization / i18n methods.
Returns the current device country code.
Returns the current device locale as a string.
Returns the current device time zone name.
Reloads the current experience. This will fetch and load the newest available JS supported by the device’s Expo environment. This is useful for triggering an update of your experience if you have published a new version.
Subscribing to App Updates
Android only. Invokes a callback when a new version of your app is successfully downloaded in the background.
listener (function) — A callback that is invoked when a new version of your app is successfully downloaded in the background.
An EventSubscription object that you can call remove() on when you would like to unsubscribe from the listener.
remove() (function) — Unsubscribe the listener from future updates.
An object that is passed into each event listener when a new version is available.
manifest (object) — Manifest object of the new version of the app.