Overview
This guide shows you how to add the MoEngage SDK to your React Native Expo project.
| library_add_check |
Prerequisites Make sure you have the following:
|
Install the SDK Package
You'll add the MoEngage SDK to your project as a package. We recommend using npx expo install because it automatically installs a version that's compatible with your project's Expo SDK.
- Open your terminal and go to your project's root directory.
- Run the following commands:
npx expo install react-native-expo-moengage
npm install react-native-moengage
Add the plugin to your configuration
Next, you need to add the MoEngage plugin to your Expo configuration file (app.json or app.config.js).
This step is required before generating the native project files.
{
"expo": {
"plugins": [
"react-native-expo-moengage"
]
}
}
Next steps
The SDK is now installed. The next step is to configure it with your app-specific details.