Check out example codes for "how to chagne rotation in unity". It will help you in understanding the concepts better.

Code Example 1

transform.eulerAngles = new Vector3(0f, 180f, 0f); // rotates 180 degrees

Learn ReactJs, React Native from akashmittal.com