Redesign chart

This commit is contained in:
Maria Zadnepryanets
2020-08-01 11:37:20 +00:00
committed by Sofiya Tepikin
parent 550b1e6314
commit ef16cfd041
27 changed files with 718 additions and 575 deletions
+12 -5
View File
@@ -1,18 +1,19 @@
import React from 'react'
import PropTypes from 'prop-types'
import { View } from 'react-native'
import { StyleSheet , View } from 'react-native'
import DripIcon from '../../assets/drip-icons'
import styles from './styles'
import { Colors, Containers } from '../../styles/redesign'
import { CHART_YAXIS_WIDTH, CHART_ICON_SIZE } from '../../config'
const SymptomIcon = ({ symptom, height }) => {
return (
<View style={styles.symptomIcon} width={styles.yAxis.width} height={height}>
<View style={styles.container} width={CHART_YAXIS_WIDTH} height={height}>
<DripIcon
size={16}
size={CHART_ICON_SIZE}
name={`drip-icon-${symptom}`}
color={styles.iconColors[symptom].color}
color={Colors.iconColors[symptom].color}
/>
</View>
)
@@ -23,4 +24,10 @@ SymptomIcon.propTypes = {
symptom: PropTypes.string,
}
const styles = StyleSheet.create({
container: {
...Containers.centerItems
}
})
export default SymptomIcon