const dummy = [1, 2, 3, 4, 5, 6, 7, 8, 9];
<View style={{flex:1}}>
<ScrollView
contentContainerStyle={{backgroundColor: 'blue'}}
style={{backgroundColor: 'red',height:'100%'}}
>
{
dummy.map((item, key) => {
return (
<Pressable key={key} style={{width: '80%', height: '30%', backgroundColor: 'green', borderWidth: 2}}>
<Text> {item}</Text>
</Pressable>
)
})
}
</ScrollView>
</View>
I want to make Pressable components' height responsively depend on the height of screen.. But above code is not working... the scrollview is not scrolled and There still should show more pressable components by map but it only shows until 4