Check out example codes for "how to get rotation of object in unity c#". It will help you in understanding the concepts better.

Code Example 1

float angleX = myTransformGO.rotation.eulerAngles.x;  
float angleY = myTransformGO.rotation.eulerAngles.y; 
float angleZ = myTransformGO.rotation.eulerAngles.z;

Learn ReactJs, React Native from akashmittal.com