Skip to content

moengage/React-Native

Repository files navigation

Logo

MoEngage React-Native Plugin

This repository contains the React-Native plugins for the MoEngage platform.

Repository Description

Folder Description
core Contains the implementation for the SDK implementation for Core MoEngage Platform
inbox Contains the implementation for the SDK implementation for Inbox Feature
cards Contains the implementation for the SDK implementation for Cards Feature
geofence Contains the implementation for the SDK implementation for Geofence Feature
expo Contains the implementation for the prebuild plugin to configure SDK native implementation
SampleApp Sample Integration for reference.
ExpoSampleApp Expo Sample Integration for reference.

How to use the sample application?

  • Update your MoEngage app-id in the SampleApp --> src --> key.js file. Replace YOUR_APP_ID with the App Id on the MoEngage Dashboard.

Javascript/TypeScript

export const MOENGAGE_APP_ID = "YOUR_APP_ID"

Android

  • Add the MoEngage app-id in the local.properties file of SampleApp --> android. Add the below key and value and replace `YOUR_APP_ID`` with the App Id on the MoEngage Dashboard.
moengageAppId=YOUR_APP_ID
  • Replace the dummy google-services.json file with your actual file.

iOS

  • Update your MoEngage app-id in the SampleApp --> iOS --> SampleApp --> AppDelegate.m file. Replace YOUR_APP_ID with the App Id on the MoEngage Dashboard.
MoEngageSDKConfig *config = [[MoEngageSDKConfig alloc] initWithAppID:@"YOUR_APP_ID"];

How to use the Expo Sample App

  • Update your workspace id in the below files

    • ExpoSampleApp > src > key.ts
    • ExpoSampleApp > assets > moengage > android_initilisation_config.xml
  • Update google services json file in ExpoSampleApp > assets > google-services.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 8