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

Code Example 1

for (int i = myArray.Length - 1; i >= 0; i--)  
{  
    // Do something ...  
}

Code Example 2

const array = [6,7,8,9,10];
for (const number of array.reverse()) {
    console.log(number);
}

Code Example 3

for (int a = 0; a < 50; a--)
{
  // Whatever You Want To Do.
}

Learn ReactJs, React Native from akashmittal.com