如何在 React Native 中实现付费去除广告(iOS and Android)

How to implement pay to remove ads in React Native (iOS and Android)

您好,我有一个带有广告的 React 本机应用 react-native-admob 我希望用户能够点击并付费以移除广告。请问我如何在 iOS 和 Android 上执行此操作?我还想确保当用户更新应用程序时,如果他们之前购买了该应用程序,他们不会获得带有广告的版本。 任何想法或使用的库将不胜感激。

使用程序包进行应用内购买,例如 react-native-iap. There are methods for buying products which you would set up in your Google Play and App Store dashboards. As for keeping track of which users have already paid for what products, that is mentioned in the docs