How to use the expo-in-app-purchases.getPurchaseHistoryAsync function in expo-in-app-purchases

To help you get started, we’ve selected a few expo-in-app-purchases 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-payments / App.js View on Github external
async queryPurchaseHistory() {
    const { responseCode, results } = await getPurchaseHistoryAsync(true);
    if (responseCode === IAPResponseCode.OK) {
      this.setState({ history: results });
    }
  }