0
I’m having trouble defining items using Flexbox.
What I need to do is leave mine item
in 90%
, I’m currently doing so, but it doesn’t 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 mine width
with values without the %