Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot add a child that doesn't have a CSS node to a node without a measure function

I upgraded to React Native v0.40 and an app that was working perfectly fine started to throw always that error.

enter image description here

Any clues?

This is the only file I found https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactShadowNode.java after much research.

like image 652
jsdario Avatar asked Jan 17 '17 11:01

jsdario


1 Answers

I had the same problem.

It turns out that I had an Icon component in a Text Component. So I took the Icon out of it.

You may have similar incompatible components inside each other.

like image 74
CodeYute Avatar answered Oct 23 '22 00:10

CodeYute