Closed jakubkoci closed 4 years ago
@jakubkoci I think you also need to set it in obj-c side. As the docs mention that that will remove the warning: Otherwise you will see a warning that in the future your module may be initialized on a background thread unless you explicitly opt out with + requiresMainQueueSetup:
+ (BOOL)requiresMainQueueSetup
{
return NO;
}
https://reactnative.dev/docs/native-modules-ios#implementing--requiresmainqueuesetup
@TimoGlastra I've just tried that and it works - doesn't show a warning. And yes, I've finally run the app on iOS :) I tried to put that into *.m file but there is just an interface and compiler complaint there shouldn't be an implementation 🤷♂️
Then I'll rest my case :)
Fixes #23