GitHubPopular icon indicating copy to clipboard operation
GitHubPopular copied to clipboard

[fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: TaskQueue: Error with task : undefined is not an object (evaluating '_reactNativeSplashScreen2.default.hide')

Open ghost opened this issue 6 years ago • 2 comments

I have these console log while running project and simulator appearance is weird. I have tried

  • check the name
RCTRootView rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                     moduleName:@"GitHubPopular"
                                              initialProperties:nil
                                                  launchOptions:launchOptions];

AppRegistry.registerComponent('GitHubPopular', () => setup);
  • react-native start
  • react-native update

still doesn't work,any appropriate guide would appreciate

2017-08-29 16:39:26.392440+0800 GitHubPopular[17433:1491073] [] nw_connection_get_connected_socket_block_invoke 4 Connection has no connected handler
2017-08-29 16:39:26.400 [warn][tid:main][RCTEventEmitter.m:54] Sending `websocketFailed` with no listeners registered.
2017-08-29 16:39:26.473 [info][tid:com.facebook.react.JavaScript] Running application "GitHubPopular" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2017-08-29 16:39:27.008 [error][tid:com.facebook.react.JavaScript] TaskQueue: Error with task : undefined is not an object (evaluating '_reactNativeSplashScreen2.default.hide')
2017-08-29 16:39:27.012 [fatal][tid:com.facebook.react.RCTExceptionsManagerQueue] Unhandled JS Exception: TaskQueue: Error with task : undefined is not an object (evaluating '_reactNativeSplashScreen2.default.hide')
wx20170829-165240 2x

ghost avatar Aug 29 '17 09:08 ghost

I have a solution for you! Try to find WelcomePage.js from Project,then comment line 26!

SZT2014 avatar Aug 30 '17 14:08 SZT2014

Where is the WelcomePage.js that you mentioned? I installed and imported the module and called the SplashScreen.hide() in componentDIdMount(){}. This line is the issue as app launches when commented out but defeats the need for the splash screen. Please advise and help. Thx

obisi7 avatar Feb 12 '18 16:02 obisi7