How to use @brandingbrand/react-native-leanplum - 1 common examples

To help you get started, we’ve selected a few @brandingbrand/react-native-leanplum 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 brandingbrand / flagship / packages / fsengage / src / modules / analytics / providers / leanplum / LeanplumProvider.ts View on Github external
constructor(commonConfiguration: AnalyticsProviderConfiguration,
              configuration: LeanplumProviderConfiguration) {
    super(commonConfiguration);

    // Leanplum accepts by default 'Purchase' as event name for revenue metrics. Confirm with
    // the client if they are using the default or a custom one.
    // Reference: https://www.leanplum.com/docs/ios/events#tracking-purchase-or-monetization-events
    this.monetizationEventName = configuration.monetizationEventName || 'Purchase';

    this.client = new RNLeanplum(configuration.appId, configuration.key);
    this.client.start();

    // TODO: Enable 'trackAllAppScreens'
  }

@brandingbrand/react-native-leanplum

React Native bridge for Leanplum iOS and Android SDKs.

MIT
Latest version published 1 year ago

Package Health Score

55 / 100
Full package analysis

Popular @brandingbrand/react-native-leanplum functions

Similar packages