Turn symptom icons into icon font

This commit is contained in:
Julia Friesel
2018-11-27 16:07:38 +01:00
parent 16220305d7
commit 4f4d930c8e
22 changed files with 216 additions and 497 deletions
+8 -8
View File
@@ -2,7 +2,7 @@ import React, { Component } from 'react'
import { ScrollView, View, TouchableOpacity, TouchableHighlight, Dimensions } from 'react-native'
import { LocalDate, ChronoUnit } from 'js-joda'
import Icon from 'react-native-vector-icons/Entypo'
import Svg, { G } from 'react-native-svg'
import { Surface } from 'react-native/Libraries/ART/ReactNativeART'
import { secondaryColor, cycleDayColor, periodColor } from '../styles'
import { home as labels, bleedingPrediction as predictLabels, shared } from './labels'
import CycleDayIcon from '../assets/home-circle'
@@ -73,15 +73,15 @@ export default class Home extends Component {
style={styles.homeIconElement}
>
<View position='absolute'>
<Svg
<Surface
width={80}
height={80}
viewBox='340 345 170 170'
>
<G fill="none" stroke="#1E0B7A" strokeWidth="2">
<CycleDayIcon/>
</G>
</Svg>
<CycleDayIcon
strokeWidth={2}
scale={0.46}
/>
</Surface>
</View>
<View style={[styles.homeIconTextWrapper, styles.wrapperCycle]}>
<AppTextLight style={styles.iconText}>
@@ -107,7 +107,7 @@ export default class Home extends Component {
style={styles.homeIconElement}
>
<View position='absolute'>
<Drop/>
<Drop scale={0.55}/>
</View>
<View style={[styles.homeIconTextWrapper, styles.wrapperDrop]}>
<AppTextLight style={styles.iconText}>