I'm trying to loopover an array to render items in a list (in react native). Every item has a button. How can I change the background color of this specific button, when someone clicks it? I already tried .setState but the problem is, that it changes the background color of every button in the list.
this.setState({btnColor: 'red' });
What can I do? Is there a way to create new states dynamically?
Thank you.