Check out example codes for "How to get the world position of the edge of an object?". It will help you in understanding the concepts better.

Code Example 1

Vector3 offset = transform.up * (transform.localScale.y / 2f) * -1f; 
Vector3 pos = transform.position + offset; //This is the position

Learn ReactJs, React Native from akashmittal.com