Check out example codes for "html autocomplete dropdown list". It will help you in understanding the concepts better.

Code Example 1

<label for="browser">Choose your browser from the list:</label>
<input list="browsers" name="browser" id="browser">

<datalist id="browsers">
  <option value="Edge">
  <option value="Firefox">
  <option value="Chrome">
  <option value="Opera">
  <option value="Safari">
</datalist>

Learn ReactJs, React Native from akashmittal.com