Pārlūkot izejas kodu

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.
```
Momen Zalabany 6 gadus atpakaļ
vecāks
revīzija
2599ae4c00
No account linked to committer's email address
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      ios/RNFetchBlob/RNFetchBlob.m

+ 4
- 0
ios/RNFetchBlob/RNFetchBlob.m Parādīt failu

@@ -42,6 +42,10 @@ dispatch_queue_t fsQueue;
42 42
     return rootView.bridge;
43 43
 }
44 44
 
45
++ (BOOL)requiresMainQueueSetup {
46
+    return NO;
47
+}
48
+
45 49
 RCT_EXPORT_MODULE();
46 50
 
47 51
 - (id) init {