React Native Plugin for the MobilePush SDK

Use the React Native plugin to integrate the MobilePush SDK into your iOS and Android apps.

Before you install the React Native plugin in your app, upgrade the SDK to the latest version. If you use SDK version 7, upgrade to version 8, and then upgrade to version 9 or later. You can upgrade to a specific version by using npm or Yarn.

  1. Import the SDK modules into your application.

    • For iOS apps, import both SFMCSDK and MarketingCloudSDK into AppDelegate.
    • For Android apps, import SFMCSdk into MainApplication.java.
  2. Add the React Native plugin to your application using npm or Yarn.

    The React Native plugin requires React Native version 0.60 or later.