title: How to prevent multiple alert rendering using react native?
body: <p>In my case, I am using <code>alert component</code> in render part, while I am executing app due to <code>multiple time rendering</code> my alert also calling twice and moretime. I have to <code>prevent</code> it, when alert is already displaying.</p>
  <p>My Code Here:</p>
  <pre><code>return (    
        { alert rendering condition (
          &lt;AlertPack
            title= &quot;&quot;
            subTitle=&quot;&quot;
            alertButtons={[
              {
                text: &quot;ok&quot;,
                onPress: () =&gt; {....}
              },
              {
                text: &quot;cancel&quot;,
                onPress: () =&gt; {....},
              },
            ]} 
          /&gt;
        )}
  )
  </code></pre>