Check out example codes for "resize textbox html". It will help you in understanding the concepts better.

Code Example 1

<form 
    action="/action_page.php">

  <label for="fname">First name:</label>
  <input type="text" id="fname" 
    name="fname" size="50"><br><br>
  <label for="pin">PIN:</label>
  
    <input type="text" id="pin" name="pin" maxlength="4" size="4"><br><br>
  
    <input type="submit" value="Submit">

    </form>

Learn ReactJs, React Native from akashmittal.com