Check out example codes for "get position of any gameobject in unity". It will help you in understanding the concepts better.

Code Example 1

GameObject.FindGameObjectWithTag("Your_Tag_Here").transform.position;

Code Example 2

GameObject.Find("Your_Name_Here").transform.position;

Learn ReactJs, React Native from akashmittal.com