Open JonasWho opened 6 years ago
perhaps the heading of this issue should be: Run KontaktBeacons on a background thread
no?
I need it to run in background thread :/
My main thread:
This thread explains the issue nicely.
The solution to get rid of this warning is probably to add:
+ (BOOL)requiresMainQueueSetup
{
return NO;
}
React Native will eventually, in future versions, demand that plugins opt in or out of running on the main thread. I get this Warning when running react-native-kontaktio in RN 0.52.0:
Module KontaktBeacons requires main queue setup since it overrides
constantsToExportbut 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.