I've upgraded from React Native 0.54 to 0.57 and my application has fallen over, due to using React Native elements.
I used the error functionality of TextInput components, which enabled props that can set and style the error message.
Very convenient, but the upgrade has broken these, and I'm now greeted with this error:
Invariant Violation: Text strings must be rendered within a <Text> Component.
So I've deleted that code and the error disappears.
However, I'm still receiving the issue when I run this code:
{ this.state.event.cards[i].fields[j].error &&
<Text style={{ color: '#e74c3c', fontSize: 14, paddingLeft: 5 }}>
{this.state.event.cards[i].fields[j].error}
</Text>
}
When I begin typing in the text-input, it sets the error message to an empty string.
So if an error is returned, typing in the field will make the error go away.
My goal is to check if this.state.event.cards[i].fields[j].error is a non-empty string, and if so, display it.


<p></p>, as I wanted to create components that worked with regular React and React Native. Changing it to<></>worked, but it's annoying that the components are harder to share between the two paradigms.setState'ssetCartfunction while the string printed without <Text> tag was in the view part. It took me more than an hour to figure this out. Ref. dropbox.com/scl/fi/4tho94eek4ho1girnv8u9/… & dropbox.com/scl/fi/jsfjk91bpajcog5trz9q0/…