diff --git a/ios/HttpClient.m b/ios/HttpClient.m index e0a685e..bfe437a 100644 --- a/ios/HttpClient.m +++ b/ios/HttpClient.m @@ -4,4 +4,9 @@ @interface RCT_EXTERN_MODULE(HttpClient, NSObject) RCT_EXTERN_METHOD(get:(NSString *)url optionsJson:(NSString *)options resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) ++ (BOOL)requiresMainQueueSetup +{ + return NO; +} + @end diff --git a/ios/HttpClient.swift b/ios/HttpClient.swift index d1a967a..f06aeba 100644 --- a/ios/HttpClient.swift +++ b/ios/HttpClient.swift @@ -1,10 +1,5 @@ @objc(HttpClient) class HttpClient: NSObject { - - @objc override static func requiresMainQueueSetup() -> Bool { - return false - } - @objc(multiply:withB:withResolver:withRejecter:) func multiply(a: Float, b: Float, resolve:RCTPromiseResolveBlock,reject:RCTPromiseRejectBlock) -> Void { resolve(a*b)