Symptom view redesign

This commit is contained in:
Maria Zadnepryanets
2020-08-14 11:57:26 +00:00
committed by Sofiya Tepikin
parent ef16cfd041
commit 885da5c293
43 changed files with 1396 additions and 1649 deletions
+8 -2
View File
@@ -1,10 +1,15 @@
import React from 'react'
import { StyleSheet, TextInput } from 'react-native'
import PropTypes from 'prop-types'
import { Colors, Spacing, Typography } from '../../styles/redesign'
const AppTextInput = ({ ...props }) => {
return <TextInput style={styles.input} {...props} />
const AppTextInput = ({ style, ...props }) => {
return <TextInput style={[styles.input, style]} {...props} />
}
AppTextInput.propTypes = {
style: PropTypes.object
}
const styles = StyleSheet.create({
@@ -16,6 +21,7 @@ const styles = StyleSheet.create({
borderWidth: 1,
color: Colors.greyDark,
marginTop: Spacing.base,
minWidth: '80%',
paddingHorizontal: Spacing.base,
...Typography.mainText
}