React-native – RnFetchBlob requires the main queue settings

When using RNFetchBlob with React Native, I see a yellow warning screen:

Module RNFetchBlob requires main queue setup since it overrides
constantsToExport 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.

I use react-native 0.56.0 and react-native-fetch-blob: 0.10.8. This is the previous reaction Native 0.54.2.

What the hell is telling me? What exactly is the main queue setting? What can I do to solve this problem? Thanks!

It turns out that react-native-fetch-blob is no longer supported, I need to use rn-fetch -blob. To solve this problem, I have to do the following:

> react-native unlink react-native-fetch-blob
> npm uninstall –save react-native-fetch- blob
> npm install –save rn-fetch-blob
> react-native link

Then, I have to change all the lines used:

From’react- native-fetch-blob’ import RNFetchBlob;

To:

Import RNFetchBlob from’rn-fetch-blob’;

Now everything is as it should be It works.

When using RNFetchBlob with React Native, I will see a yellow warning screen:

Module RNFetchBlob requires main queue setup since it overrides
constantsToExport 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.

I use react-native 0.56.0 and react-native-fetch-blob: 0.10. 8. This is 0.54.2 in the previous React Native.

What exactly is wrong telling me? What exactly is the main queue setting? What can I do to solve this problem? Thanks!

It turns out that react-native-fetch-blob is no longer supported, I need to use rn-fetch-blob. To solve this problem, I have to do the following Things:

> react-native unlink react-native-fetch-blob
> npm uninstall –save react-native-fetch-blob
> npm install –save rn-fetch -blob
> react-native link

Then, I have to change all the lines used:

Import RNFetchBlob from’react-native-fetch-blob’;

To:

Import RNFetchBlob from’rn-fetch-blob’;

Now everything works as it should.

< p>

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5914 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.