//
//  RNLocationPickerManager.m
//  tacitus
//
//  Created by q6112345 on 3/8/2016.
//  Copyright © 2016 https://github.com/q6112345 All rights reserved.
//

#import "RNLocationPickerManager.h"
//#import "RCTLog.h"
//#import "RCTEventDispatcher.h"
#import "RCTUtils.h"

//#import <RNLocationPicker/RNLocationPicker-Swift.h>
//#import <example/example-Swift.h>
//#import "RNLocationPicker-Swift.h"
//#import <RNLocationPicker/RNLocationPicker-Swift.h>
//@import LocationPicker;

//NSString *LocationDidSelectNotification = @"LocationDidSelect";

//@interface RNLocationPickerManager()
//
//@property (nonatomic, strong) CustomLocationPicker *picker;
//
//@end


@implementation RNLocationPickerManager

RCT_EXPORT_MODULE();

@synthesize bridge = _bridge;

//-(instancetype)init
//{
//    self = [super init];
//    if (self)
//    {
////        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onLocationDidSelect:) name:LocationDidSelectNotification object:nil];
//    }
//    return self;
//}
- (dispatch_queue_t)methodQueue
{
  return dispatch_get_main_queue();
}


RCT_EXPORT_METHOD(launchLocationPicker)
{
//    self.picker = [LocationPicker new];
//    LocationPicker *picker = [LocationPicker new];
    UIViewController *rootViewController = RCTKeyWindow().rootViewController;
//    UINavigationController *navigationController =
//    [[UINavigationController alloc] initWithRootViewController:picker];
//    
//    [rootViewController presentViewController:navigationController animated:YES completion:nil];

    
}

@end
