|
@ -41,7 +41,7 @@ import CheckBox from "../components/forms/CheckBox"; |
|
|
import defaultStyles from "../config/styles" |
|
|
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})?\)?[)\b]?([0-9]{4,5})[-. ]?([0-9]{4})$/ |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
const validationSchema = Yup.object().shape({ |
|
|
const validationSchema = Yup.object().shape({ |
|
@ -444,7 +444,7 @@ export default function RegisterScreen(props) { |
|
|
flex={1} |
|
|
flex={1} |
|
|
maxLength={12} |
|
|
maxLength={12} |
|
|
name="number" |
|
|
name="number" |
|
|
placeholder="(DDD) XXXXX-XXXX" |
|
|
|
|
|
|
|
|
placeholder="(DD) XXXXX-XXXX" |
|
|
paddingRight={2} |
|
|
paddingRight={2} |
|
|
/> |
|
|
/> |
|
|
</View> |
|
|
</View> |
|
|