I want a gap of say 30px; between all children of my card (View) component.
return (
<Card style={styles.screen}>
<Text>...</Text>
<Text>...</Text>
<Button title='...' onPress={...} />
</Card>
)
const styles = StyleSheet.create({
screen: {
maxWidth: '80%',
width: 200,
paddingVertical: 30,
justifyContent: 'center',
alignItems: 'center',
},
})
I want all of them to have a space of 30px; between them. How can I do this with React Native's stylesheet?