Install and configure
Install and configure the React Native unified plugin for your app.
Install a Product Package
Install the product package that matches your implementation.
To install Marketing Cloud Engagement, use @sfmc/react-native-marketingcloudsdk:
1npm install @sfmc/react-native-marketingcloudsdk1yarn add @sfmc/react-native-marketingcloudsdkTo install Mobile App Messaging, use @sfmc/react-native-mobileappmessaging:
1npm install @sfmc/react-native-mobileappmessaging1yarn add @sfmc/react-native-mobileappmessagingAdd Optional Feature Packages
Both marketingcloudsdk and mobileappmessaging depend on sfmc-core. When you install one of these packages, the system installs sfmc-core automatically. Install optional feature packages only when your app requires them.
1yarn add @sfmc/react-native-push @sfmc/react-native-iamInitialize SDK Access in React Native
Use each module’s requestSdk() API to access typed SDK operations.
1import { SFMCSdkModule } from '@sfmc/react-native-sfmc-core';
2
3const coreSdk = await SFMCSdkModule.requestSdk();Platform Configuration
After base installation, complete platform setup: