I have a code like this, I want the state to work only on the element of the array on which I click, and not on everything. if I'm not mistaken, in js it is used "this".
{ORDER_HISTORY.map((item) => {
return (
<TouchableOpacity key={item.id} onPress={thisBlockWillBeRevealed}>
<Text>{item.text}</Text>
</TouchableOpacity> })}
Video: https://www.dropbox.com/s/1wbc5y6ngerpr35/RPReplay_Final1639308045.MP4?dl=0