title: Prevent react-native alert dismiss onPress button
body: <p>I have a <code>react-native</code> Alert as follow. What i would like to achieve is to prevent the alert box dimiss <code>onPress</code> and delay alert box dismiss.</p>
  
  <p>How could this be done with <a href="https://facebook.github.io/react-native/docs/alert" rel="nofollow noreferrer">react-native built in Alert component</a>?</p>
  
  <p>I am assuming that there is a built in <code>preventAlertBoxDismiss()</code> and <code>dismissAlert()</code> function but couldn't find in documentation.</p>
  
  <p><strong>1) Prevent alert box dismiss onPress button</strong></p>
  
  <pre><code>onPressAskMeLater = () =&gt; {
      preventAlertBoxDismiss();
      anyAction();
  }
  </code></pre>
  
  <p><strong>2) Delay alert box dismiss</strong></p>
  
  <pre><code>onPressAskMeLater = () =&gt; {
      preventAlertBoxDismiss();
      setTimeOut(3000);
      dismissAlert();
  }
  </code></pre>
  
  <p><strong>Alert code</strong></p>
  
  <pre><code>Alert.alert(
    'Alert Title',
    'My Alert Msg',
    [
      {text: 'Ask me later', onPress: () =&gt; this.onPressAskMeLater()},
      {text: 'OK'},
    ],
    {cancelable: false},
  );
  </code></pre>