Constantly, I'm having the error:
Can not add a child that does not have a YogaNode to a parent without a measure function! (Trying to add a 'ReactRawTextShadowNode' to a 'LayoutShadowNode')
I did not understand the logic of the error, so I could not fix it.
Follow my code:
import React, { Component } from 'react';
import { ScrollView, Text } from 'react-native';
import { Tile, List, ListItem } from 'react-native-elements';
class UserDetail extends Component {
render() {
const { id, title, whatsapp, email, phone, location } = this.props.navigation.state.params;
return (
<ScrollView>
<Tile
imageSrc={{ uri: 'https://buscafree.com.br/assets/img/items/${id}.jpg'}}
featured
title={title}
/>
<List>
{phone ? (<ListItem title="Telefone" rightTitle={phone} hideChevron />) : ''}
</List>
</ScrollView>
);
}
}
export default UserDetail;