2017-02-21 100 views
2

我的程序刚刚通过命令react-native run-android启动后出现一个错误。当我关闭远程调试时出现错误。通过调试器,所有工作都正确。在没有调试的情况下启动时出现React Native错误

Objects are not valid as a React child (found: object with keys {$$typeof, type, key, ref, props, _owner, _store}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of `View`. 
traverseAllChildrenImpl 
    traverseAllChildren.js:183 
traverseAllChildrenImpl 
    traverseAllChildren.js:102 
traverseAllChildren 
    traverseAllChildren.js:218 
instantiateChildren 
    ReactChildReconciler.js:86 
_reconcilerInstantiateChildren 
    ReactMultiChild.js:179 
mountChildren 
    ReactMultiChild.js:249 
initializeChildren 
    ReactNativeBaseComponent.js:74 
mountComponent 
    ReactNativeBaseComponent.js:211 
mountComponent 
    ReactReconciler.js:61 
performInitialMount 
    ReactCompositeComponent.js:495 
mountComponent 
    ReactCompositeComponent.js:346 
mountComponent 
    ReactReconciler.js:61 
performInitialMount 
    ReactCompositeComponent.js:495 
mountComponent 
    ReactCompositeComponent.js:346 
mountComponent 
    ReactReconciler.js:61 
performInitialMount 
    ReactCompositeComponent.js:495 
mountComponent 
    ReactCompositeComponent.js:346 
mountComponent 
    ReactReconciler.js:61 
mountComponentIntoNode 
    ReactNativeMount.js:54 
perform 
    Transaction.js:149 
batchedMountComponentIntoNode 
    ReactNativeMount.js:77 
perform 
    Transaction.js:149 
batchedUpdates 
    ReactDefaultBatchingStrategy.js:65 
batchedUpdates 
    ReactUpdates.js:111 
renderComponent 
    ReactNativeMount.js:141 
render 
    ReactNative.js:31 
renderApplication 
    renderApplication.js:33 
run 
    AppRegistry.js:76 
runApplication 
    AppRegistry.js:105 
__callFunction 
    MessageQueue.js:236 
<unknown> 
    MessageQueue.js:108 
guard 
    MessageQueue.js:46 
callFunctionReturnFlushedQueue 
    MessageQueue.js:107 

版本的库

“反应-DOM”: “15.3.2〜”, “反应原生”: “^ 0.39.2”,

回答

0

在我的情况与之反应我们本土的拖累刚刚出现在Android周这个神秘的错误没有建立你描述

罪魁祸首是一个

附加调试器

import 'core-js'

我们的根组件上,似乎填充工具被搞乱事情了

只需卸下进口线和试试看的package.json

"react-native": "0.44.2", 
    "react": "16.0.0-alpha.6", 

相关部分

相关问题