Skip to main content

Overview

This guide shows you how to add the MoEngage SDK to your React Native Expo project.
PrerequisitesMake sure you have the following:
  • A MoEngage account.
  • A React Native project set up with Expo.

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.
1

Navigate to root

Open your terminal and go to your project’s root directory.
2

Install packages

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.