Skip to content

Commit 2599ae4

Browse files
authored
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. ```
1 parent fa38cd5 commit 2599ae4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ios/RNFetchBlob/RNFetchBlob.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ + (RCTBridge *)getRCTBridge
4242
return rootView.bridge;
4343
}
4444

45+
+ (BOOL)requiresMainQueueSetup {
46+
return NO;
47+
}
48+
4549
RCT_EXPORT_MODULE();
4650

4751
- (id) init {

0 commit comments

Comments
 (0)