//
//  RNUMConfigure.m
//  UMComponent
//
//  Created by wyq.Cloudayc on 14/09/2017.
//  Copyright © 2017 Facebook. All rights reserved.
//

#import "RNUMConfigure.h"
#import <React/RCTConvert.h>
#import <React/RCTEventDispatcher.h>

@implementation RNUMConfigure

RCT_EXPORT_MODULE();

RCT_EXPORT_METHOD(initWithAppkey:(NSString *)appkey channel:(NSString *)channel) {
    SEL sel = NSSelectorFromString(@"setWraperType:wrapperVersion:");
    if ([UMConfigure respondsToSelector:sel]) {
        [UMConfigure performSelector:sel withObject:@"react-native" withObject:@"1.0"];
    }
    [UMConfigure initWithAppkey:appkey channel:channel];
}
//+ (void)initWithAppkey:(NSString *)appkey channel:(NSString *)channel
//{
//
//}
@end
