For statement not passing "i" variable to onPress inside of it

How do i go about doing this? I just have a generic loop say from 0 to 6 that I would like to “capture” this number and have it passed to the onPress statement within the for loop.