mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-01 05:30:42 +00:00
Fix setPostInvocationHandler typo
This commit is contained in:
parent
ea1f84fb33
commit
32e2e5b8d5
@ -3,11 +3,9 @@
|
|||||||
// instabugDemo
|
// instabugDemo
|
||||||
//
|
//
|
||||||
// Created by Yousef Hamza on 9/29/16.
|
// Created by Yousef Hamza on 9/29/16.
|
||||||
// Copyright © 2016 Facebook. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
#import "InstabugReactBridge.h"
|
#import "InstabugReactBridge.h"
|
||||||
#import <Instabug/Instabug.h>
|
#import "Instabug.h"
|
||||||
|
|
||||||
@implementation InstabugReactBridge
|
@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) {
|
if (callBack != nil) {
|
||||||
[Instabug setPostInvocatioHandler:^(IBGDismissType dismissType, IBGReportType reportType) {
|
[Instabug setPostInvocationHandler:^(IBGDismissType dismissType, IBGReportType reportType) {
|
||||||
[self sendEventWithName:@"IBGpostInvocationHandler" body:@{
|
[self sendEventWithName:@"IBGpostInvocationHandler" body:@{
|
||||||
@"dismissType": @(dismissType),
|
@"dismissType": @(dismissType),
|
||||||
@"reportType": @(reportType)
|
@"reportType": @(reportType)
|
||||||
}];
|
}];
|
||||||
}];
|
}];
|
||||||
} else {
|
} else {
|
||||||
[Instabug setPostInvocatioHandler:nil];
|
[Instabug setPostInvocationHandler:nil];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user