react-native-kontaktio
                                
                                 react-native-kontaktio copied to clipboard
                                
                                    react-native-kontaktio copied to clipboard
                            
                            
                            
                        Run KontaktBeacons in background thread instead of main thread
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 implementrequiresMainQueueSetup. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.
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;
}