浏览代码

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 7 年前
父节点
当前提交
2599ae4c00
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      ios/RNFetchBlob/RNFetchBlob.m

+ 4
- 0
ios/RNFetchBlob/RNFetchBlob.m 查看文件

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 {