Example
iOS
On iOS you can specify any number of buttons. Each button can optionally specify a style or be emphasized, available options are represented by the AlertButtonStyle enum and theisPreferred field on AlertButton.
Android
On Android at most three buttons can be specified. Android has a concept of a neutral, negative and a positive button:- If you specify one button, it will be the ‘positive’ one (such as ‘OK’)
- Two buttons mean ‘negative’, ‘positive’ (such as ‘Cancel’, ‘OK’)
- Three buttons mean ‘neutral’, ‘negative’, ‘positive’ (such as ‘Later’, ‘Cancel’, ‘OK’)
true i.e.{cancelable: true}.
The cancel event can be handled by providing an onDismiss callback property inside the options parameter.
Vega
Vega mimics the behaviour of Android’s alert with at most three buttons and its positive/negative/neutral semantics.- If you specify one button, it will be the ‘positive’ one (such as ‘OK’)
- Two buttons mean ‘negative’, ‘positive’ (such as ‘Cancel’, ‘OK’)
- Three buttons mean ‘neutral’, ‘negative’, ‘positive’ (such as ‘Later’, ‘Cancel’, ‘OK’)
{cancelable: true}.
The cancel event can be handled by providing an onDismiss callback property inside the options parameter.
Example Android
Reference
Methods
alert()
prompt() iOS
Type Definitions
AlertButtonStyle iOS Vega Not Available
An iOS Alert button style.
Constants:
AlertType iOS Vega Not Available
An iOS Alert type.
Constants:
AlertButton
An object describing the configuration of a button in the alert.
Objects properties:
AlertOptions
Properties:

