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
@@ -65,10 +65,10 @@ Create and display a popup alert.
65
65
66
66
| Name | Type | Required | Description |
67
67
| - | - | - | - |
68
-
| title | string |No| The dialog's title. Passing null or '' will hide the title. |
69
-
| message | string |Yes| An optional message that appears below the dialog's title. |
70
-
| callbackOrButtons | ?(() => void),[ButtonsArray](docs/alertios.html#buttonsarray)|Yes| This optional argument should be either a single-argument function or an array of buttons. If passed a function, it will be called when the user taps 'OK'. If passed an array of button configurations, each button should include a `text` key, as well as optional `onPress` and `style` keys. `style` should be one of 'default', 'cancel' or 'destructive'. |
71
-
| type |[AlertType](docs/alertios.html#alerttype)|Yes| Deprecated, do not use. |
68
+
| title | string |Yes| The dialog's title. Passing null or '' will hide the title. |
69
+
| message | string |No| An optional message that appears below the dialog's title. |
70
+
| callbackOrButtons | ?(() => void),[ButtonsArray](docs/alertios.html#buttonsarray)|No| This optional argument should be either a single-argument function or an array of buttons. If passed a function, it will be called when the user taps 'OK'. If passed an array of button configurations, each button should include a `text` key, as well as optional `onPress` and `style` keys. `style` should be one of 'default', 'cancel' or 'destructive'. |
71
+
| type |[AlertType](docs/alertios.html#alerttype)|No| Deprecated, do not use. |
@@ -102,12 +102,12 @@ Create and display a prompt to enter some text.
102
102
103
103
| Name | Type | Required | Description |
104
104
| - | - | - | - |
105
-
| title | string |No| The dialog's title. |
106
-
| message | string |Yes| An optional message that appears above the text input. |
107
-
| callbackOrButtons | ?((text: string) => void),[ButtonsArray](docs/alertios.html#buttonsarray)|Yes| This optional argument should be either a single-argument function or an array of buttons. If passed a function, it will be called with the prompt's value when the user taps 'OK'. If passed an array of button configurations, each button should include a `text` key, as well as optional `onPress` and `style` keys (see example). `style` should be one of 'default', 'cancel' or 'destructive'. |
108
-
| type |[AlertType](docs/alertios.html#alerttype)|Yes| This configures the text input. One of 'plain-text', 'secure-text' or 'login-password'. |
109
-
| defaultValue | string |Yes| The default text in text input. |
110
-
| keyboardType | string |Yes| The keyboard type of first text field(if exists). One of 'default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter' or 'web-search'. |
105
+
| title | string |Yes| The dialog's title. |
106
+
| message | string |No| An optional message that appears above the text input. |
107
+
| callbackOrButtons | ?((text: string) => void),[ButtonsArray](docs/alertios.html#buttonsarray)|No| This optional argument should be either a single-argument function or an array of buttons. If passed a function, it will be called with the prompt's value when the user taps 'OK'. If passed an array of button configurations, each button should include a `text` key, as well as optional `onPress` and `style` keys (see example). `style` should be one of 'default', 'cancel' or 'destructive'. |
108
+
| type |[AlertType](docs/alertios.html#alerttype)|No| This configures the text input. One of 'plain-text', 'secure-text' or 'login-password'. |
109
+
| defaultValue | string |No| The default text in text input. |
110
+
| keyboardType | string |No| The keyboard type of first text field(if exists). One of 'default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter' or 'web-search'. |
Register a headless task. A headless task is a bit of code that runs without a UI.
202
-
@param taskKey the key associated with this task
203
-
@param task a promise returning function that takes some data passed from the native side as
204
-
the only argument; when the promise is resolved or rejected the native side is
205
-
notified of this event and it may decide to destroy the JS context.
206
202
203
+
**Parameters:**
207
204
205
+
| Name | Type | Required | Description |
206
+
| - | - | - | - |
207
+
| taskKey | string | No | The key associated with this task. |
208
+
| task | function | No | A promise returning function that takes some data passed from the native side as the only argument; when the promise is resolved or rejected the native side is notified of this event and it may decide to destroy the JS context. |
208
209
209
210
210
211
---
@@ -215,12 +216,15 @@ Register a headless task. A headless task is a bit of code that runs without a U
215
216
staticstartHeadlessTask(taskId, taskKey, data)
216
217
```
217
218
218
-
219
219
Only called from native code. Starts a headless task.
220
220
221
-
@param taskId the native id for this task instance to keep track of its execution
222
-
@param taskKey the key for the task to start
223
-
@param data the data to pass to the task
221
+
**Parameters:**
222
+
223
+
| Name | Type | Required | Description |
224
+
| - | - | - | - |
225
+
| taskId | number | No | The native id for this task instance to keep track of its execution |
226
+
| taskKey | string | No | The key for the task to start |
227
+
| data | any | No | The data to pass to the task |
0 commit comments