I’ve been using import ionic-native/toast
{ Toast } from ‘@ionic-native/toast’;
want to show a toast with different background than the diffault
and using
this.toast.showWithOptions({
message: "Please provide an E-mail address",
duration: 2000, // 2000 ms
position: "top",
styling: {
opacity: 0.75, // 0.0 (transparent) to 1.0 (opaque). Default 0.8
backgroundColor: '#FF0000', // make sure you use #RRGGBB. Default #333333
textColor: '#FFFF00', // Ditto. Default #FFFFFF
// textSize: 20.5, // Default is approx. 13.
cornerRadius: 16, // minimum is 0 (square). iOS default 20, Android default 100
horizontalPadding: 20, // iOS default 16, Android default 50
verticalPadding: 16 // iOS default 12, Android default 30
}
});
but got nothing as a toast