crazycodeboy / GitHubPopular

这是一个用来查看GitHub最受欢迎与最热项目的App,它基于React Native支持Android和iOS双平台。#适配RN最新版在这里☞#
http://coding.imooc.com/class/304.html
2.9k stars 581 forks source link

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

Open ghost opened 7 years ago

ghost commented 7 years ago

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

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')


<img width="311" alt="wx20170829-165240 2x" src="https://user-images.githubusercontent.com/7844886/29812808-7cf27d4a-8cda-11e7-99ce-44b37155a50b.png">
SZT2014 commented 7 years ago

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

obisi7 commented 6 years ago

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