Check out example codes for "unity rotate around pivot c#". It will help you in understanding the concepts better.

Code Example 1

public Transform customPivot;

void Update()
{
    transform.RotateAround(customPivot.position, Vector3.up, 20 * Time.deltaTime);
}

Learn ReactJs, React Native from akashmittal.com