How to use the react-native-purchases.restoreTransactions function in react-native-purchases

To help you get started, we’ve selected a few react-native-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 RevenueCat / react-native-purchases / example / app / screens / CatsScreen.js View on Github external
onPress={async () => {
                      try {
                        const info = await Purchases.restoreTransactions();
                        this.handleInfo(info);
                      } catch (e) {
                        // eslint-disable-next-line no-console
                        console.log(JSON.stringify(e));
                      }
                    }}
                  >
github Flaque / quirk / src / payments / index.ts View on Github external
export const restoreSubscription = async (): Promise => {
  userRestoredPurchase();
  try {
    await Purchases.restoreTransactions();
  } catch (err) {
    log("Error", err);
    Sentry.captureException(err);
  }
};