Check out example codes for "unity mouse click position". It will help you in understanding the concepts better.
Code Example 1
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); RaycastHit hit = new RaycastHit(); if (Physics.Raycast(ray, out hit)) { return hit.point; }
Learn ReactJs, React Native from akashmittal.com