Fix .m file
This commit is contained in:
parent
5df4c5d038
commit
b5fa478a45
|
@ -5,7 +5,7 @@
|
||||||
// Created by Yousef Hamza on 9/29/16.
|
// Created by Yousef Hamza on 9/29/16.
|
||||||
|
|
||||||
#import "InstabugReactBridge.h"
|
#import "InstabugReactBridge.h"
|
||||||
#import "Instabug.h"
|
#import <Instabug/Instabug.h>
|
||||||
|
|
||||||
@implementation InstabugReactBridge
|
@implementation InstabugReactBridge
|
||||||
|
|
||||||
|
@ -78,14 +78,14 @@ RCT_EXPORT_METHOD(setPreInvocationHandler:(RCTResponseSenderBlock)callBack) {
|
||||||
|
|
||||||
RCT_EXPORT_METHOD(setPostInvocationHandler:(RCTResponseSenderBlock)callBack) {
|
RCT_EXPORT_METHOD(setPostInvocationHandler:(RCTResponseSenderBlock)callBack) {
|
||||||
if (callBack != nil) {
|
if (callBack != nil) {
|
||||||
[Instabug setPostInvocationHandler:^(IBGDismissType dismissType, IBGReportType reportType) {
|
[Instabug setPostInvocatioHandler:^(IBGDismissType dismissType, IBGReportType reportType) {
|
||||||
[self sendEventWithName:@"IBGpostInvocationHandler" body:@{
|
[self sendEventWithName:@"IBGpostInvocationHandler" body:@{
|
||||||
@"dismissType": @(dismissType),
|
@"dismissType": @(dismissType),
|
||||||
@"reportType": @(reportType)
|
@"reportType": @(reportType)
|
||||||
}];
|
}];
|
||||||
}];
|
}];
|
||||||
} else {
|
} else {
|
||||||
[Instabug setPostInvocationHandler:nil];
|
[Instabug setPostInvocatioHandler:nil];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,7 +126,8 @@ RCT_EXPORT_METHOD(setCommentFieldRequired:(BOOL)isCommentFieldRequired) {
|
||||||
}
|
}
|
||||||
|
|
||||||
RCT_EXPORT_METHOD(setShakingThresholdForIPhone:(double)iPhoneShakingThreshold forIPad:(double)iPadShakingThreshold) {
|
RCT_EXPORT_METHOD(setShakingThresholdForIPhone:(double)iPhoneShakingThreshold forIPad:(double)iPadShakingThreshold) {
|
||||||
[Instabug setShakingThresholdForIPhone:iPhoneShakingThreshold forIPad:iPadShakingThreshold];
|
[Instabug setShakingThresholdForiPhone:iPadShakingThreshold
|
||||||
|
foriPad:iPadShakingThreshold];
|
||||||
}
|
}
|
||||||
|
|
||||||
RCT_EXPORT_METHOD(setFloatingButtonEdge:(CGRectEdge)floatingButtonEdge withTopOffset:(double)floatingButtonOffsetFromTop) {
|
RCT_EXPORT_METHOD(setFloatingButtonEdge:(CGRectEdge)floatingButtonEdge withTopOffset:(double)floatingButtonOffsetFromTop) {
|
||||||
|
|
Loading…
Reference in New Issue