GitHubPopular
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')
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](https://user-images.githubusercontent.com/7844886/29812808-7cf27d4a-8cda-11e7-99ce-44b37155a50b.png)
I have a solution for you! Try to find WelcomePage.js from Project,then comment line 26!
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