Check out example codes for "c# how to make object rotate forever". It will help you in understanding the concepts better.

Code Example 1

//Use FixedUpdate instead of Update for physics, rotation, and movement.
void FixedUpdate()
    {
        laserPointer.Rotate(x, y, z);
  		//Use your own rotation values to replace x, y and z.
    }

Learn ReactJs, React Native from akashmittal.com