You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Libraries/Alert/AlertIOS.js
+5-90
Original file line number
Diff line number
Diff line change
@@ -77,60 +77,15 @@ export type ButtonsArray = Array<{
77
77
}>;
78
78
79
79
/**
80
-
* @description
81
-
* `AlertIOS` provides functionality to create an iOS alert dialog with a
82
-
* message or create a prompt for user input.
83
-
*
84
-
* Creating an iOS alert:
85
-
*
86
-
* ```
87
-
* AlertIOS.alert(
88
-
* 'Sync Complete',
89
-
* 'All your data are belong to us.'
90
-
* );
91
-
* ```
92
-
*
93
-
* Creating an iOS prompt:
94
-
*
95
-
* ```
96
-
* AlertIOS.prompt(
97
-
* 'Enter a value',
98
-
* null,
99
-
* text => console.log("You entered "+text)
100
-
* );
101
-
* ```
102
-
*
103
-
* We recommend using the [`Alert.alert`](docs/alert.html) method for
104
-
* cross-platform support if you don't need to create iOS-only prompts.
80
+
* Use `AlertIOS` to display an alert dialog with a message or to create a prompt for user input on iOS. If you don't need to prompt for user input, we recommend using `Alert.alert() for cross-platform support.
105
81
*
82
+
* See http://facebook.github.io/react-native/docs/alertios.html
106
83
*/
107
84
classAlertIOS{
108
85
/**
109
86
* Create and display a popup alert.
110
-
* @static
111
-
* @method alert
112
-
* @param title The dialog's title. Passing null or '' will hide the title.
113
-
* @param message An optional message that appears below
114
-
* the dialog's title.
115
-
* @param callbackOrButtons This optional argument should
116
-
* be either a single-argument function or an array of buttons. If passed
117
-
* a function, it will be called when the user taps 'OK'.
118
-
*
119
-
* If passed an array of button configurations, each button should include
120
-
* a `text` key, as well as optional `onPress` and `style` keys. `style`
121
-
* should be one of 'default', 'cancel' or 'destructive'.
122
-
* @param type Deprecated, do not use.
123
87
*
124
-
* @example <caption>Example with custom buttons</caption>
125
-
*
126
-
* AlertIOS.alert(
127
-
* 'Update available',
128
-
* 'Keep your app up to date to enjoy the latest features',
0 commit comments