Documentation requiresMainQueueSetup missing
As asked before. There are no docs on requiresMainQueueSetup.
For example, if it needs to use a main-thread-only iOS API, it should specify this via:
- (dispatch_queue_t)methodQueue { return dispatch_get_main_queue(); }
But this seems to be not enough since I'm getting:
2018-11-08 10:31:12.591 [warn][tid:main][RCTModuleData.mm:67]
Module XXXXXX 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.
I could write some docs if someone can explain why - (dispatch_queue_t)methodQueue is not enough and in which cases one would need to implement requiresMainQueueSetup as well.
+1
+1
+1
+1
Thanks for reporting.
Please use GitHub's reactions.
We can close this issue now that #813 landed.
Ah that is great 😃👍.
But not completely, since methodQueue is still not explained. can we reopen it?
👋 Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Ping @charpeni @EricAtPlanGrid
👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.