In Native Android
, we can change the button color in Alert Dialog
as mentioned here.
How to perform similar styling for Alert
in React Native
?
Here is my code for Alert
:
Alert.alert(
'Alert Title',
'Alert Message / Description?',
[
{ text: 'No', onPress: () => this.actionNo() },
{ text: 'Yes', onPress: () => this.actionYes() }
],
{ cancelable: false }
);
Note: This is not duplicate. Here I've asked about how to use Alert
dialog styling, without changing the implementation to Model
.