Installation

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:

  • 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. Open your terminal and go to your project's root directory.
  2. Run the following commands:
Shell
npx expo install react-native-expo-moengage
Shell
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.

JSON

  {
    "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. 

Previous

Next

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?