Answers for "yup__WEBPACK_IMPORTED_MODULE_0__.string(...).phone is not a function"

2

yup phone number

const phoneRegExp = /^((\+[1-9]{1,4}[ \-]*)|(\([0-9]{2,3}\)[ \-]*)|([0-9]{2,4})[ \-]*)*?[0-9]{3,4}?[ \-]*[0-9]{3,4}?$/

phoneNumber: Yup.string().matches(phoneRegExp, 'Phone number is not valid')
Posted by: Guest on July-03-2020

Code answers related to "yup__WEBPACK_IMPORTED_MODULE_0__.string(...).phone is not a function"

Browse Popular Code Answers by Language