title: react phone number validation
body: <p>I am using <a href="https://www.npmjs.com/package/joi-phone-number" rel="nofollow noreferrer">joi-phone-numbe</a>r library for phone number validation.</p>
  <p>This is sample code for react am trying</p>
  <pre><code>import Joi from 'joi';
  import cNumber from 'joi-phone-number';
  const myJoi = Joi.extend(cNumber);
  
  schema = {
          phone: myJoi.string().phoneNumber({defaultCountry: 'US',format: 'international'})
  } 
  </code></pre>
  <p>The problem is it validates only first two digits after that it shows the number is correct</p>
  <pre><code>Example
  09 Invalid
  999 Valid
  </code></pre>
  <p>So how am supposing to use this with react. Mine goal is here to check country code too with valid phone number.</p>