Browse Source

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 years ago
parent
commit
2599ae4c00
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      ios/RNFetchBlob/RNFetchBlob.m

+ 4
- 0
ios/RNFetchBlob/RNFetchBlob.m View File

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