Check out example codes for "recognizing touch input unity". It will help you in understanding the concepts better.

Code Example 1

if (Input.touchCount > 0) { }

Learn ReactJs, React Native from akashmittal.com