This commit is contained in:
Julia Friesel
2018-08-16 21:45:17 +02:00
parent ff60db089c
commit a59aa86dbf
+11 -7
View File
@@ -190,12 +190,16 @@ class SymptomBox extends Component {
class FillerBoxes extends Component { class FillerBoxes extends Component {
render() { render() {
const n = Dimensions.get('window').width / styles.symptomBox.minHeight const n = Dimensions.get('window').width / styles.symptomBox.minHeight
return Array(Math.ceil(n)).fill( const fillerBoxes = []
<View for (let i = 0; i < Math.ceil(n); i++) {
width={styles.symptomBox.minHeight} fillerBoxes.push(
height={0} <View
key={Math.random().toString()} width={styles.symptomBox.minHeight}
/> height={0}
) key={i.toString()}
/>
)
}
return fillerBoxes
} }
} }