react-native-adapty - v4.0.1
    Preparing search index...

    Function createOnboardingView

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

      Parameters

      Returns Promise<OnboardingViewController>

      OnboardingViewController — A promise that resolves to an OnboardingViewController instance.

      Since 4.0.0. The legacy onboarding view is deprecated — migrate to the Flow Builder API, which renders onboardings and paywalls natively instead of in a WebView. This function will be removed in a future version.

      const onboarding = await adapty.getOnboarding("MY_ONBOARDING");
      const view = await createOnboardingView(onboarding);
      // Present with default full-screen style
      view.present();

      // With custom external URLs presentation
      const viewWithCustomUrls = await createOnboardingView(onboarding, {
      externalUrlsPresentation: WebPresentation.BrowserOutApp
      });

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