react-native-moengage-geofence
Version:
MoEngage React Native package to support geofence based campaigns in iOS platform
14 lines (10 loc) • 461 B
text/typescript
import { getAppIdJson } from "../utils/MoEGeofenceJsonBuilder";
const MoEGeofenceBridge = require("react-native").NativeModules.MoEngageGeofence;
export class MoEGeofenceRNAndroid {
static startGeofenceMonitoring(appId:string) {
MoEGeofenceBridge.startGeofenceMonitoring(JSON.stringify(getAppIdJson(appId)));
}
static stopGeofenceMonitoring(appId:string) {
MoEGeofenceBridge.stopGeofenceMonitoring(JSON.stringify(getAppIdJson(appId)));
}
}