I upgraded to React Native v0.40, and an application that worked fine started to always throw this error.
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.
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.
If you are using react-native-svg , make sure you wrap all SVG components, for example <Circle .../> inside the <Svg> ... </Svg> .
react-native-svg
<Circle .../>
<Svg> ... </Svg>
Otherwise, you will receive this error message.
Try it, it worked for me. Go to your own folder with the source project and run the commands below.
rm -r node_modulesnpm install