diff --git a/ios/RNInstabug/InstabugReactBridge.m b/ios/RNInstabug/InstabugReactBridge.m index 97f2021..db31be2 100644 --- a/ios/RNInstabug/InstabugReactBridge.m +++ b/ios/RNInstabug/InstabugReactBridge.m @@ -3,11 +3,9 @@ // instabugDemo // // Created by Yousef Hamza on 9/29/16. -// Copyright © 2016 Facebook. All rights reserved. -// #import "InstabugReactBridge.h" -#import +#import "Instabug.h" @implementation InstabugReactBridge @@ -78,16 +76,16 @@ RCT_EXPORT_METHOD(setPreInvocationHandler:(RCTResponseSenderBlock)callBack) { } } -RCT_EXPORT_METHOD(setPostInvocatioHandler:(RCTResponseSenderBlock)callBack) { +RCT_EXPORT_METHOD(setPostInvocationHandler:(RCTResponseSenderBlock)callBack) { if (callBack != nil) { - [Instabug setPostInvocatioHandler:^(IBGDismissType dismissType, IBGReportType reportType) { + [Instabug setPostInvocationHandler:^(IBGDismissType dismissType, IBGReportType reportType) { [self sendEventWithName:@"IBGpostInvocationHandler" body:@{ @"dismissType": @(dismissType), @"reportType": @(reportType) }]; }]; } else { - [Instabug setPostInvocatioHandler:nil]; + [Instabug setPostInvocationHandler:nil]; } }