Check out example codes for "materialize css form file input". It will help you in understanding the concepts better.

Code Example 1

<form action="#">
    <div class="file-field input-field">
      <div class="btn">
        <span>File</span>
        <input type="file">
      </div>
      <div class="file-path-wrapper">
        <input class="file-path validate" type="text">
      </div>
    </div>
  </form>

Learn ReactJs, React Native from akashmittal.com