MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / alert

Method alert

Libraries/Alert/Alert.js:81–98  ·  view source on GitHub ↗
(
    title: ?string,
    message?: ?string,
    buttons?: Buttons,
    options?: Options,
    type?: AlertType,
  )

Source from the content-addressed store, hash-verified

79class 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/**

Callers 14

PathActionMapFunction · 0.45
TimerExample.jsFile · 0.45
XHRExampleDownloadClass · 0.45
renderMethod · 0.45
CameraRollView.jsFile · 0.45
_onRegisteredMethod · 0.45
_onRegistrationErrorMethod · 0.45
_onRemoteNotificationMethod · 0.45
_onLocalNotificationMethod · 0.45
getInitialStateFunction · 0.45
RTLExample.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected