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」,