diff --git a/ios/RCTSmartconfig/Smartconfig.m b/ios/RCTSmartconfig/Smartconfig.m index a6f05a1..4270042 100644 --- a/ios/RCTSmartconfig/Smartconfig.m +++ b/ios/RCTSmartconfig/Smartconfig.m @@ -62,6 +62,12 @@ - (instancetype)init } return self; } + ++ (BOOL)requiresMainQueueSetup +{ + return YES; +} + RCT_EXPORT_METHOD(stop) { [self cancel]; } diff --git a/package.json b/package.json index 457d20e..4d3c41b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-smartconfig", - "version": "0.2.2", + "version": "1.0.2", "description": "react-native ESP8266 smartconfig module", "nativePackage": true, "scripts": {