I'm having trouble defining items using Flexbox.
What I need to do is to leave my item
in 90%
, currently I'm doing so, but it does not work.
<View>
<ScrollView horizontal>
<View style={Card}>
<View style={CardItem}>
</View>
</View>
</ScrollView>
</View>
const styles = {
Card: {
width: '100%',
height: 80,
padding: 10
},
CardItem: {
backgroundColor: 'red',
width: '90%',
height: 100
}
}
Only works if I set my width
to values without %