(
title: ?string,
message?: ?string,
buttons?: Buttons,
options?: Options,
type?: AlertType,
)
| 79 | class Alert { |
| 80 | |
| 81 | static alert( |
| 82 | title: ?string, |
| 83 | message?: ?string, |
| 84 | buttons?: Buttons, |
| 85 | options?: Options, |
| 86 | type?: AlertType, |
| 87 | ): void { |
| 88 | if (Platform.OS === 'ios' || Platform.OS === 'macos') { |
| 89 | if (typeof type !== 'undefined') { |
| 90 | console.warn('Alert.alert() with a 5th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'); |
| 91 | AlertIOS.alert(title, message, buttons, type); |
| 92 | return; |
| 93 | } |
| 94 | AlertIOS.alert(title, message, buttons); |
| 95 | } else if (Platform.OS === 'android') { |
| 96 | AlertAndroid.alert(title, message, buttons, options); |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /** |
no outgoing calls
no test coverage detected