From 3d90873476e27dbff1d28346dc33f6840869238e Mon Sep 17 00:00:00 2001 From: Momen Zalabany Date: Sat, 31 Mar 2018 14:01:52 +0200 Subject: [PATCH] compatible with RN > 0.49 RN > 0.49 requires to implement requiresMainQueueSetup. this fix and suppress that yellow box warning ``` Module RNFetchBlob requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of. ``` --- ios/RNFetchBlob/RNFetchBlob.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/RNFetchBlob/RNFetchBlob.m b/ios/RNFetchBlob/RNFetchBlob.m index 246d6707c..716611165 100644 --- a/ios/RNFetchBlob/RNFetchBlob.m +++ b/ios/RNFetchBlob/RNFetchBlob.m @@ -42,6 +42,10 @@ + (RCTBridge *)getRCTBridge return rootView.bridge; } ++(BOOL)requiresMainQueueSetup { + return NO; +} + RCT_EXPORT_MODULE(); - (id) init {