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.
-
Import the SDK modules into your application.
- For iOS apps, import both
SFMCSDKandMarketingCloudSDKintoAppDelegate. - For Android apps, import
SFMCSdkintoMainApplication.java.
- For iOS apps, import both
-
Add the React Native plugin to your application using npm or Yarn.
The React Native plugin requires React Native version 0.60 or later.