From 33d5296610a3cb610fbd64aeb6d5f29ea56bd1f0 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Mon, 20 May 2019 13:35:44 +0000 Subject: [PATCH] Deploy website Deploy website version based on 7ef936471932ee521a012ed9990b5ba8b8cf0044 --- docs/next/alert.html | 8 ++++---- docs/next/alert/index.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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 @@
  • Two buttons mean 'negative', 'positive' (such as 'Cancel', 'OK')
  • Three buttons mean 'neutral', 'negative', 'positive' (such as 'Later', 'Cancel', 'OK')
  • -

    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},
     );
     

    Methods

    @@ -118,7 +118,7 @@ Alert.alert<

    Reference

    Methods

    alert()

    -
    static alert(title, message?, buttons?, options?)
    +
    static alert(title, message?, buttons?, options? type?)