react-native-component / react-native-smart-splash-screen

A smart splash screen for React Native apps
MIT License
490 stars 109 forks source link

[iOS] Throw 'requiresMainQueueSetup' warn #43

Open someok opened 7 years ago

someok commented 7 years ago

My env:

"react-native": "0.49.3", "react-native-smart-splash-screen": "^2.3.5",

Throw warn:

Module RCTSplashScreen 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.

developercode1 commented 5 years ago

@someok Did you find any possible solutions for this. I am facing this too.

react-native - v0.57.5 react-native-smart-splash-screen - v2.3.5

TIA

andyr6381 commented 5 years ago

facing this also on 58.4 any update?

andyr6381 commented 5 years ago

add to the bottom of RCTSplashScreen.m in iOS node-modules. This fixes the notification but cannot test if it's working as I can't get the SplashScreen to work correctly atm.

+ (BOOL)requiresMainQueueSetup
{
    return YES;
}

@end