How to check if field is valid with validator #1 OR validator #2 in YUP

前端 未结 0 1101
死守一世寂寞
死守一世寂寞 2021-02-20 13:59

I need to check if field contains phone number OR email.

Something like this:

const phoneOrEmailValidationSchema = Yup.object().shape({
  phoneOrEmail: Yup         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题