diff --git a/docs/next/alert.html b/docs/next/alert.html index 821d977d172..5ef0a1c36f7 100644 --- a/docs/next/alert.html +++ b/docs/next/alert.html @@ -85,8 +85,7 @@
By default alerts on Android can be dismissed by tapping outside of the alert box. This event can be handled by providing an optional options parameter, with an onDismiss callback property { onDismiss: () => {} }.
Alternatively, the dismissing behavior can be disabled altogether by providing an optional options parameter with the cancelable property set to false i.e. { cancelable: false }
By default alerts on Android are not dismissable by tapping outside of the alert box (since v0.60). To enable it, you can pass an optional options object with the cancelable property set to true. The dismissal event can be handled by adding an onDismiss callback property to options. Note: Alerts are never dismissable on iOS.
Example usage:
// Works on both iOS and Android
Alert.alert(
@@ -101,7 +100,8 @@ Alert.alert<
},
{text: 'OK', onPress: () => console.log('OK Pressed')},
],
- {cancelable: false},
+ // Cancelability by tapping outside the popup can be enabled on Android
+ {cancelable: true, onDismiss: () => {}},
);
By default alerts on Android can be dismissed by tapping outside of the alert box. This event can be handled by providing an optional options parameter, with an onDismiss callback property { onDismiss: () => {} }.
Alternatively, the dismissing behavior can be disabled altogether by providing an optional options parameter with the cancelable property set to false i.e. { cancelable: false }
By default alerts on Android are not dismissable by tapping outside of the alert box (since v0.60). To enable it, you can pass an optional options object with the cancelable property set to true. The dismissal event can be handled by adding an onDismiss callback property to options. Note: Alerts are never dismissable on iOS.
Example usage:
// Works on both iOS and Android
Alert.alert(
@@ -101,7 +100,8 @@ Alert.alert<
},
{text: 'OK', onPress: () => console.log('OK Pressed')},
],
- {cancelable: false},
+ // Cancelability by tapping outside the popup can be enabled on Android
+ {cancelable: true, onDismiss: () => {}},
);