It is not possible to add a child that does not have a CSS node to a node without a dimension function

I upgraded to React Native v0.40, and an application that worked fine started to always throw this 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 a lot of research.

+8
android ios facebook reactjs react-native
source share
3 answers

I had the same problem.

Turns out I had an Icon component in a text component. Therefore, I took the Icon from this. You may have similar incompatible components inside each other.

+3
source share

If you are using react-native-svg , make sure you wrap all SVG components, for example <Circle .../> inside the <Svg> ... </Svg> .

Otherwise, you will receive this error message.

0
source share

Try it, it worked for me. Go to your own folder with the source project and run the commands below.

rm -r node_modules
npm install

-2
source share

All Articles