0
Constantly, I’m making the mistake:
Cannot add a Child that doesn’t have a Yoganode to a Parent without a Measure Function! (Trying to add a 'Reactrawtextshadownode' to a 'Layoutshadownode')
I didn’t understand the logic of the mistake, so I couldn’t correct it.
Follows 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;