From a8ff769e4dc9d61a2524fec51182930f6ed96a4b Mon Sep 17 00:00:00 2001 From: Dexter Lohnes Date: Thu, 23 Jul 2020 15:27:23 -0700 Subject: [PATCH] Expect BOOLs not pointers to BOOLs If we attempt to read these as pointers to BOOLs, they end up, as far as I can tell, always evaluating to false / NO. I verified this behavior on my own machine. OSX: 10.15.2 iOS: 13.3 iPhone model: 6s --- ios/FPStaticServer.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/FPStaticServer.m b/ios/FPStaticServer.m index d011f5d..1c3c429 100644 --- a/ios/FPStaticServer.m +++ b/ios/FPStaticServer.m @@ -32,8 +32,8 @@ - (dispatch_queue_t)methodQueue RCT_EXPORT_METHOD(start: (NSString *)port root:(NSString *)optroot - localOnly:(BOOL *)localhost_only - keepAlive:(BOOL *)keep_alive + localOnly:(BOOL)localhost_only + keepAlive:(BOOL)keep_alive resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {