How to use the expo-ota.readCurrentManifestAsync function in expo-ota

To help you get started, we’ve selected a few expo-ota examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / apps / expo-ota-example-app / App.tsx View on Github external
const manifest = () => {
    OTA.readCurrentManifestAsync()
      .then(result => {
        Alert.alert('Result: ', `${JSON.stringify(result)}`);
      })
      .catch(e => {
        Alert.alert('Error!', `${JSON.stringify(e.message)}`);
      });
  };