diff --git a/modules/react-native-status/ios/RCTStatus/RCTStatus.h b/modules/react-native-status/ios/RCTStatus/RCTStatus.h index 7e5193717b..1bfd8ef8bd 100644 --- a/modules/react-native-status/ios/RCTStatus/RCTStatus.h +++ b/modules/react-native-status/ios/RCTStatus/RCTStatus.h @@ -3,4 +3,5 @@ #import "RCTLog.h" @interface Status : NSObject ++ (void)signalEvent:(const char *) signal; @end diff --git a/modules/react-native-status/ios/RCTStatus/RCTStatus.m b/modules/react-native-status/ios/RCTStatus/RCTStatus.m index 1d084eaba5..c4b9babac3 100644 --- a/modules/react-native-status/ios/RCTStatus/RCTStatus.m +++ b/modules/react-native-status/ios/RCTStatus/RCTStatus.m @@ -283,11 +283,15 @@ RCT_EXPORT_METHOD(setSoftInputMode: (NSInteger) i) { #endif } -+ (void)signalEvent:(char *) signal ++ (void)signalEvent:(const char *) signal { if(!signal){ +#if DEBUG + NSLog(@"SignalEvent nil"); +#endif return; } + NSString *sig = [NSString stringWithUTF8String:signal]; #if DEBUG NSLog(@"SignalEvent"); @@ -295,6 +299,8 @@ RCT_EXPORT_METHOD(setSoftInputMode: (NSInteger) i) { #endif [bridge.eventDispatcher sendAppEventWithName:@"gethEvent" body:@{@"jsonEvent": sig}]; + + return; } @end diff --git a/modules/react-native-status/ios/RCTStatus/pom.xml b/modules/react-native-status/ios/RCTStatus/pom.xml index 8fb8111abc..7e66f3f494 100644 --- a/modules/react-native-status/ios/RCTStatus/pom.xml +++ b/modules/react-native-status/ios/RCTStatus/pom.xml @@ -25,7 +25,7 @@ status-im status-go-ios-simulator - restart-rpc2 + restart-rpc3 zip true ./