Hey Diego Bernal: The Formik and yup is working great for me.
Now i need to validate a phone number and i also tried this solution. stackoverflow.com/a/53210158/7995957
But it is not working. So do you know any other solution ?
const phoneReg = /^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/
const accountInfoSchema = Yup.object().shape({
phone: Yup.string()
.matches(phoneReg, 'Enter valid phone number')
.required('Required'),
});