Check out example codes for "unity position ui element". It will help you in understanding the concepts better.

Code Example 1

// To get or set the position of a UI element, see below:
GameObject.GetComponent<RectTransform>().anchoredPosition;

Learn ReactJs, React Native from akashmittal.com