title: Change component characteristics (style) using a loop
body: <p>Is there anyway to go through each component(Ex: button/label) characteristics using an infinite loop? In my app I have 24 buttons in a particular screen and I want to change color of each button one by one all the time. I want to change the color of each button one by one all the time. I have tried both <code>componentdidmount</code> and <code>componentwillmount</code>, but it happens once. When I go to another screen and come back, the loop doesnt start.<a href="https://i.stack.imgur.com/MlfWX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MlfWX.png" alt="enter image description here"></a></p>