React原生应用程序停留在启动画面

时间:2017-02-16 04:34:34

标签: react-native

我有一个用Ignite Red Boilerplate编码的原生应用程序反应,应用程序有时只停留在启动屏幕(启动画面)。然后我回到之前的提交并再次启动应用程序,它开始按预期工作。

帮助您找到解决方案:

  1. 我正在使用此启动画面模块:React native splash screen
  2. Ignite red带有一个登录Saga并且我添加了另一个注册传奇,它工作正常,直到我实际卸载应用程序并重新安装它,然后当App安装时,它从未通过闪屏。
  3. 我没有看到任何记录,尝试在Xcode中运行它但没有调试日志,我怎么能在Simulator系统日志中看到以下内容并且我在这里粘贴了一些东西。希望有些人可以帮我解码。
  4. 
    
    Feb 16 09:46:11 MAC009s-Mac-mini NyteVibe[1709]: Running application NyteVibe ({
    	    initialProps =     {
    	    };
    	    rootTag = 1;
    	})
    Feb 16 09:46:11 MAC009s-Mac-mini NyteVibe[1709]: Running application "NyteVibe" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
    Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: undefined is not an object (evaluating 'el.props.component')
    Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: Unhandled JS Exception: undefined is not an object (evaluating 'el.props.component')
    Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: action @ 09:46:12.030 STARTUP
    Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: '%c prev state', 'color: #9E9E9E; font-weight: bold', { temperature: { temperature: null, fetching: null, error: null, city: null },
    	  login: { user: null, error: null, fetching: false },
    
    Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: —— log end ——
    Feb 16 09:46:12 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 7 Connection has no connected handler
    Feb 16 09:46:13 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 8 Connection has no connected handler
    Feb 16 09:46:14 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 9 Connection has no connected handler
    Feb 16 09:46:16 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 10 Connection has no connected handler
    Feb 16 09:46:16 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 11 Connection has no connected handler
    Feb 16 09:46:18 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 12 Connection has no connected handler
    Feb 16 09:46:20 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 13 Connection has no connected handler
    Feb 16 09:46:21 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 14 Connection has no connected handler
    Feb 16 09:46:22 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 15 Connection has no connected handler
    Feb 16 09:46:24 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 16 Connection has no connected handler
    Feb 16 09:46:26 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 17 Connection has no connected handler
    Feb 16 09:46:26 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 18 Connection has no connected handler
    Feb 16 09:46:28 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 19 Connection has no connected handler
    Feb 16 09:46:30 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 20 Connection has no connected handler
    Feb 16 09:46:31 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 21 Connection has no connected handler
    Feb 16 09:46:32 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 22 Connection has no connected handler
    Feb 16 09:46:34 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 23 Connection has no connected handler
    Feb 16 09:46:36 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 24 Connection has no connected handler
    Feb 16 09:46:36 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 25 Connection has no connected handler
    Feb 16 09:46:38 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 26 Connection has no connected handler
    Feb 16 09:46:40 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 27 Connection has no connected handler
    Feb 16 09:46:41 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 28 Connection has no connected handler
    Feb 16 09:46:42 MAC009s-Mac-mini NyteVibe[1709]: [] __nw_connection_get_connected_socket_block_invoke 29 Connection has no connected handler
    
    
    

    正如您在系统日志中看到的那样,前6个条目是我的启动操作,它们被完美地解雇了。然后这个没有连接的处理程序。

1 个答案:

答案 0 :(得分:0)

你有例外:

undefined is not an object (evaluating 'el.props.component')

在您的项目中搜索el.props.component - 它将成为启动期间安装的组件的可能性。要么您或者您滥用具有该代码的第三方组件。