Separates TemperatureSlider component, adds minor post-review changes

This commit is contained in:
mashazyu
2020-03-30 17:13:47 +02:00
committed by Sofiya Tepikin
parent 42bc91d9c2
commit 45cff710c8
6 changed files with 171 additions and 139 deletions
+5 -4
View File
@@ -5,15 +5,16 @@ import Icon from 'react-native-vector-icons/Entypo'
import { Sizes } from '../../styles/redesign'
const AppIcon = ({ color, name }) => {
const style = [styles.icon, { color }]
const AppIcon = ({ color, name, style, ...props }) => {
const iconStyle = [styles.icon, style, { color }]
return <Icon name={name} style={style}/>
return <Icon name={name} style={iconStyle} {...props} />
}
AppIcon.propTypes = {
color: PropTypes.string,
name: PropTypes.string.isRequired
name: PropTypes.string.isRequired,
style: PropTypes.object
}
AppIcon.defaultProps = {