Mein Text wird inline angezeigt und ich will es nicht.Stoppen Sie Text von der Anzeige inline
Warum bewirkt dieser Code, dass er inline angezeigt wird?
<Card style={{
marginBottom: 10,
flex: 1,
flexDirection: 'row',
backgroundColor: 'green'
}}>
<CardItem style={{
flex: 1,
flexDirection: 'row',
backgroundColor: 'red',
alignItems: 'center'
}}>
<Text style={{
color: '#FFFFFF',
marginBottom: 15,
width: '100%',
backgroundColor: 'green',
flexDirection: 'row',
}}>
{this.selectedProduct.name}
</Text>
<Text style={{
color: '#FFFFFF',
marginBottom: 15,
backgroundColor: 'blue',
width: '100%'
}}>
{this.selectedProduct.description}
</Text>
<Text style={{
backgroundColor: 'yellow',
color: '#FFFFFF',
marginBottom: 15,
width: '100%'
}}>
price: {this.selectedProduct.price ? this.selectedProduct.price + ' of your local currency' : 'not entered'}
</Text>
</CardItem>
</Card>