#import <Foundation/Foundation.h>
#import "React/RCTBridge.h"
#import <MapKit/MapKit.h>
#import <React/RCTViewManager.h>
#import "Here.h"
@import NMAKit;

@interface HRManager : RCTViewManager
@end

@implementation HRManager

RCT_EXPORT_MODULE(Here)

Here * myScript;




RCT_EXPORT_METHOD(Action:(NSString *)name)
{
        [[NSNotificationCenter defaultCenter] postNotificationName:name object:self];
}


@synthesize bridge = _bridge;

- (UIView *)view
{
  return [[Here alloc] initWithEventDispatcher:self.bridge.eventDispatcher];

}

- (NSArray *) customDirectEventTypes {
    return @[
             @"onCreateRoute",
             @"onNavStart"
             ];
}


- (dispatch_queue_t)methodQueue
{
  return dispatch_get_main_queue();
}

RCT_EXPORT_VIEW_PROPERTY(InitCoords, NSDictionary);
RCT_EXPORT_VIEW_PROPERTY(routeParams, NSDictionary);

@end
