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 @@
  • 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 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: () => {}},
     );
     

    Methods

    diff --git a/docs/next/alert/index.html b/docs/next/alert/index.html index 821d977d172..5ef0a1c36f7 100644 --- a/docs/next/alert/index.html +++ b/docs/next/alert/index.html @@ -85,8 +85,7 @@
  • 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 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: () => {}},
     );
     

    Methods