//
//  GeofenceListener.m
//  react-native-geouniq
//
//  Created by Paolo Donato on 21/05/21.
//

#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
#import "GeofenceListener.h"
#import "NGListener.h"

@implementation GeofenceListener

- (void)didEnterGUGeofence:(GUGeofence * _Nonnull)geofence {
	NGListener *listner = [NGListener allocWithZone:nil];
	[listner sendGeofenceWithName:@"GeoUniqGeofenceUpdate" body:@{geofence.id: @"INSIDE"}];
}

- (void)didExitGUGeofence:(GUGeofence * _Nonnull)geofence {
	NGListener *listner = [NGListener allocWithZone:nil];
	[listner sendGeofenceWithName:@"GeoUniqGeofenceUpdate" body:@{geofence.id: @"OUTSIDE"}];
}

@end
