Skip to content

Commit

Permalink
Added requiresMainQueueSetup False to .m file
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinvdBurg committed Dec 15, 2023
1 parent 54edae8 commit 31c3feb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ios/HttpClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions ios/HttpClient.swift
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 31c3feb

Please sign in to comment.