ソースを参照

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 年 前
コミット
2599ae4c00
No account linked to committer's email address
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4
    0
      ios/RNFetchBlob/RNFetchBlob.m

+ 4
- 0
ios/RNFetchBlob/RNFetchBlob.m ファイルの表示

@@ -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 {