How to use the expo-ota.addListener 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
useEffect(() => {
    console.warn('They say it is registered. Is it?');
    OTA.addListener(event => {
      Alert.alert('Event: ', `${JSON.stringify(event)}`);
    });
  }, []);