mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-02-28 21:20:40 +00:00
Fix setPostInvocationHandler typo
This commit is contained in:
parent
ea1f84fb33
commit
32e2e5b8d5
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user