title: can't able to change the state when back button pressed in react native
body: <p>My Requirement when I press 1st time <code>showPopUp1</code> should be true and second time <code>showpopup1</code> will be false.</p>
  <pre><code>const [showPopUp1, setShowPopUp1] = useState(false);   
  useBackHandler(() =&gt; {    
      setShowPopUp1(!showPopUp1)
      return true
  } 
  </code></pre>