Check out example codes for "input type for contact no". It will help you in understanding the concepts better.

Code Example 1

label for="phone">Enter your phone number:</label>
<input type="tel" id="phone" name="phone" pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}">

Learn ReactJs, React Native from akashmittal.com