iOS yellow box: Module RNShare requires main queue setup since it overrides...
See original GitHub issueSteps to reproduce
- create new react-native app and install/link react-native-share
- react-native run-ios
- check out yellow box warning with contents including the title
Expected behaviour
RNShare should load without warnings
Actual behaviour
There is a compatibility warning containing this text:
“Module RNShare 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.”
Environment
- react-native 0.56
- iOS 11.3 (in a simulator, model A1586)
react-native-share
Version: npm version 1.1.0
Possible patch:
Looks like this might be the simplest similar patch (though I suppose you could re-think the whole thing…): https://github.com/kmagiera/react-native-gesture-handler/commit/310c3905dc68d9594861551b070238ab53544b7f
Workaround:
import { YellowBox } from ‘react-native’; YellowBox.ignoreWarnings( [‘requires main queue setup’] );
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Yellow box warning "requires main queue setup since it ...
Steps to reproduce. Launch app with react-native-share in iOS ( simulator can reproduce ). Expected behaviour. No Yellow Box Warnings. Actual behaviour.
Read more >Module iCloudStorage requires main queue setup since it ...
Module iCloudStorage requires main queue setup since it overrides constantsToExport but doesn't implement requiresMainQueueSetup . In a future ...
Read more >How to fix React Native get a yellow warning ... - YouTube
Module AudioRecorderManager requires main queue setup since it overrides constantsToExport but doesn't implement requiresMainQueueSetup.
Read more >DispatchQueue | Apple Developer Documentation
An object that manages the execution of tasks serially or concurrently on your app's main thread or on a background thread.
Read more >React Native iOs 警告requires main queue setup warning
2020-03-29 16:22:57.149 [warn][tid:main][RCTModuleData.mm:68] Module RCTGetuiModule requires main queue setup since it overrides `init` but ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed here: https://github.com/react-native-community/react-native-share/pull/331 try master branch
@Maple13 done!