Skip to content

Commit

Permalink
compatible with RN > 0.49
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
alzalabany authored Apr 11, 2018
1 parent fa38cd5 commit 2599ae4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/RNFetchBlob/RNFetchBlob.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ + (RCTBridge *)getRCTBridge
return rootView.bridge;
}

+ (BOOL)requiresMainQueueSetup {
return NO;
}

RCT_EXPORT_MODULE();

- (id) init {
Expand Down

0 comments on commit 2599ae4

Please sign in to comment.