Check out example codes for "open the file upload dialogue box onclick the image". It will help you in understanding the concepts better.

Code Example 1

<input type="file" id="imgupload" style="display:none"/> 
<button id="OpenImgUpload">Image Upload</button>

$('#OpenImgUpload').click(function(){ $('#imgupload').trigger('click'); });

Learn ReactJs, React Native from akashmittal.com