I am trying to style buttons so they appear in a row. With the code below the buttons appear in a column. How can I achieve the styling shown in the picture below? I would like to use Flex
renderRadioButton = () => {
return (
<View
style={{
flexDirection: 'row',
flexWrap: 'wrap',
padding: 0,
margin: 0,
listStyle: 'none',
display: 'flex',
}}
>
<View
style={{
flexDirection: 'row',
flexWrap: 'wrap',
}}
>
<Text
style={{
color: Colors.black,
borderWidth: 1,
borderColor: 'black',
borderStyle: 'solid',
backgroundColor: Colors.green,
width: 50,
height: 50,
fontSize: 6,
textAlign: 'center',
padding: 10,
margin: 10,
marginBottom: 50,
}}
>
TEST
</Text>
</View>
</View>
)
}

