we can use a state for button color , then update that state whenever button is pressed
this.state = {
buttonColor:'red'
}
then in Button Component, place buttonColor state in in style
<Button onPress={()=> this.setState(buttonColor:"Blue")} style={{ color:this.state.buttonColor}} />
If you are using react-native-adaptive-cards, you can customize styles as follows
customThemeConfig = {
input: {
borderColor: "#000000",
backgroundColor: "#F5F5F5",
borderRadius: 4,
borderWidth: 1,
},
button: {
"ios": {
color: 'white',
backgroundColor: "#1D9BF6",
},
"android": {
color: 'white',
backgroundColor: "#1D9BF6",
},
"windows": {
color: 'white',
backgroundColor: "#1D9BF6",
}
}
}
<AdaptiveCards themeConfig={customThemeConfig} payload={payload} />
so whenever the button is pressed, the state will change color will turn to Blue.