Style radio button row

This commit is contained in:
Julia Friesel
2018-07-15 23:01:10 +02:00
parent eba5837350
commit 8639208018
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export default class Bleeding extends Component {
return ( return (
<View style={styles.symptomEditView}> <View style={styles.symptomEditView}>
<Text style={styles.symptomDayView}>Bleeding</Text> <Text style={styles.symptomDayView}>Bleeding</Text>
<View style={{marginTop: 15}}> <View style={styles.radioButtonRow}>
<RadioForm <RadioForm
radio_props={bleedingRadioProps} radio_props={bleedingRadioProps}
initial={this.state.currentValue} initial={this.state.currentValue}
+6 -1
View File
@@ -31,7 +31,7 @@ export default StyleSheet.create({
}, },
radioButton: { radioButton: {
fontSize: 18, fontSize: 18,
margin: 5, margin: 8,
textAlign: 'center', textAlign: 'center',
textAlignVertical: 'center' textAlignVertical: 'center'
}, },
@@ -77,5 +77,10 @@ export default StyleSheet.create({
}, },
symptomEditButton: { symptomEditButton: {
width: 130 width: 130
},
radioButtonRow: {
marginTop: 15,
marginLeft: 'auto',
marginRight: 'auto'
} }
}) })