diff --git a/docs/next/alert.html b/docs/next/alert.html index 3b07a1821a8..ceda7907276 100644 --- a/docs/next/alert.html +++ b/docs/next/alert.html @@ -91,7 +91,8 @@
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.
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 }
Example usage:
// Works on both iOS and Android
Alert.alert(
@@ -106,8 +107,7 @@ Alert.alert<
},
{text: 'OK', onPress: () => console.log('OK Pressed')},
],
- // Cancelability by tapping outside the popup can be enabled on Android
- {cancelable: true, onDismiss: () => {}},
+ {cancelable: false},
);
alert()static alert(title, message?, buttons?, options?)
+static alert(title, message?, buttons?, options? type?)