react-native-adapty - v3.15.6
    Preparing search index...

    Function createPaywallView

    • Creates a paywall view controller. You can use it to further configure a view or present it.

      Parameters

      Returns Promise<ViewController>

      ViewController — A promise that resolves to a ViewController instance.

      const paywall = await adapty.getPaywall("MY_PAYWALL");
      const view = await createPaywallView(paywall);
      // Present with default full-screen style
      view.present();
      // Or present with custom style (iOS only)
      view.present({ iosPresentationStyle: 'page_sheet' }); // or 'full_screen'

      — If paywall is not found, does not have a no-code view configured or if there is an error while creating a view.