Fix setPostInvocationHandler typo

This commit is contained in:
Hossam Hassan 2017-01-30 18:06:34 +02:00
parent ea1f84fb33
commit 32e2e5b8d5

View File

@ -3,11 +3,9 @@
// instabugDemo
//
// Created by Yousef Hamza on 9/29/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import "InstabugReactBridge.h"
#import <Instabug/Instabug.h>
#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];
}
}