Common causes for this error include:
Direct text within a <View>
: Placing text directly inside a <View>
without wrapping it in <Text>
components.
Whitespace between components: Extra spaces or newlines between JSX elements within a <View>
can be interpreted as text nodes.
These are the common causes that error occurs.
You can check this link out because google gave this result to me. https://www.google.com/search?q=why+this+error+occured+in+react+Unexpected+text+node%3A+.+A+text+node+cannot+be+a+child+of+a+%3CView%3E.&oq=why+this+error+occured+in+react+Unexpected+text+node%3A+.+A+text+node+cannot+be+a+child+of+a+%3CView%3E.&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRiPAjIHCAIQIRiPAjIHCAMQIRiPAtIBCDc1NjRqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8