change border color of touchableopacity in React Native

i want to do a quiz screen so i have 2 TouchableOpacity like this. I want when the Answer1 is pressed, the bordercolor will change to blue and the Anwer2 will not. I use setState and onPress like this. But when I press Answer1, both TouchableOpacity change bordercolor to blue. How can i fix this?enter image description here



Read more here: https://stackoverflow.com/questions/64416669/change-border-color-of-touchableopacity-in-react-native

Content Attribution

This content was originally published by Lucas at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: