title: how to dismiss an alert in React Native?
body: <p>I am using an <strong>Alert</strong> , and  when i am navigating to previous screen on clicking of ok button this <em>alert is not dismissing</em>. 
    its showing up again in that back screen.</p>
  
  <p>How i can stop this alert showing up again.</p>
  
  <p>I am trying this code.</p>
  
  <pre><code>  showErrorAlert = () =&gt; {
     Alert.alert(
        CONSTANTS.SOME_ERROR_OCCURED,
        '',
        [{ text: 'OK', onPress: () =&gt; this.loggingOut() },],)
     };
  
   loggingOut = () =&gt; {
    console.log("coming here");
   };
  </code></pre>