simple way to rearrange home screen

This commit is contained in:
Julia Friesel
2019-05-22 16:26:39 +02:00
committed by emelko
parent ac0690ec9f
commit 668acb4afe
2 changed files with 14 additions and 9 deletions
+12 -8
View File
@@ -12,7 +12,6 @@ import links from '../i18n/en/links'
import cycleModule from '../lib/cycle'
import { getFertilityStatusForDay } from '../lib/sympto-adapter'
import styles, { cycleDayColor, periodColor, secondaryColor } from '../styles'
import AppText from './app-text'
import Button from './button'
import { formatDateForShortText } from './helpers/format-date'
@@ -33,13 +32,18 @@ const HomeElement = ({ children, onPress, buttonColor, buttonLabel }) => {
onPress={ onPress }
style={ styles.homeIconElement }
>
{ children }
<Button
style={styles.homeButton}
onPress={ onPress }
backgroundColor={ buttonColor }>
{ buttonLabel }
</Button>
{children[0]}
{children[1]}
<View>
{children[2]}
<Button
style={styles.homeButton}
onPress={ onPress }
backgroundColor={ buttonColor }>
{ buttonLabel }
</Button>
</View>
</View>
)
}