|
@ -38,6 +38,7 @@ import ConfirmationModal from "../components/ConfirmationModal"; |
|
|
import PasswordFormField from "../components/forms/PasswordFormField"; |
|
|
import PasswordFormField from "../components/forms/PasswordFormField"; |
|
|
import constants from "../config/constants"; |
|
|
import constants from "../config/constants"; |
|
|
import CheckBox from "../components/forms/CheckBox"; |
|
|
import CheckBox from "../components/forms/CheckBox"; |
|
|
|
|
|
import defaultStyles from "../config/styles" |
|
|
|
|
|
|
|
|
const phoneRegex = RegExp( |
|
|
const phoneRegex = RegExp( |
|
|
/^\(?[\(]?([0-9]{2,3})?\)?[)\b]?([0-9]{4,5})[-. ]?([0-9]{4})$/ |
|
|
/^\(?[\(]?([0-9]{2,3})?\)?[)\b]?([0-9]{4,5})[-. ]?([0-9]{4})$/ |
|
@ -80,22 +81,16 @@ function LocalDatePicker({ date, setDate, _moment }) { |
|
|
date={date} |
|
|
date={date} |
|
|
> |
|
|
> |
|
|
<View style={[styles.dateInput, { flex: 1, paddingRight: 2 }]}> |
|
|
<View style={[styles.dateInput, { flex: 1, paddingRight: 2 }]}> |
|
|
<Shadow |
|
|
|
|
|
offset={[0, 3]} |
|
|
|
|
|
distance={3} |
|
|
|
|
|
radius={4} |
|
|
|
|
|
startColor="rgba(0, 0, 0, 0.15)" |
|
|
|
|
|
paintInside={true} |
|
|
|
|
|
viewStyle={{ width: "100%", height: 48 }} |
|
|
|
|
|
> |
|
|
|
|
|
<View |
|
|
<View |
|
|
style={{ |
|
|
style={{ |
|
|
|
|
|
...defaultStyles.shadow, |
|
|
|
|
|
height: 58, |
|
|
paddingLeft: 12, |
|
|
paddingLeft: 12, |
|
|
backgroundColor: colors.white, |
|
|
backgroundColor: colors.white, |
|
|
height: 48, |
|
|
|
|
|
borderColor: colors.grayBG, |
|
|
borderColor: colors.grayBG, |
|
|
borderWidth: 1, |
|
|
borderWidth: 1, |
|
|
borderRadius: 4, |
|
|
|
|
|
|
|
|
padding: 5, |
|
|
|
|
|
borderRadius: 6, |
|
|
flexDirection: "row", |
|
|
flexDirection: "row", |
|
|
alignItems: "center", |
|
|
alignItems: "center", |
|
|
}} |
|
|
}} |
|
@ -111,7 +106,6 @@ function LocalDatePicker({ date, setDate, _moment }) { |
|
|
: "Selecione a data de nascimento"} |
|
|
: "Selecione a data de nascimento"} |
|
|
</Text> |
|
|
</Text> |
|
|
</View> |
|
|
</View> |
|
|
</Shadow> |
|
|
|
|
|
</View> |
|
|
</View> |
|
|
</FormDatePicker> |
|
|
</FormDatePicker> |
|
|
</View> |
|
|
</View> |
|
|