title: send data back to home screen without "onPress" functionality
body: <p>I have a react native app.<br/>
  I am trying to send some data back to my Home screen.<br/>
  In the Home screen, the user clicks a button that will navigate to the Details screen.</p>
  <p>home.js</p>
  <pre><code>param = {
  date: 2021-05-01,
  id: 001
  }
  
  this.props.navigation.navigate('Detail', params)
  
  </code></pre>
  <p>Detail.js</p>
  <pre><code>parameter = {
  date: 2021-05-01,
  id: 001
  }
  
  let data = JSON.stringify(this.props.route.params)
  
  {
  parameter === data ?
  //send some string back to home screen : null
  }
  </code></pre>
  <p>So if the entries match in the &quot;Details&quot; screen i want to send some string like &quot;PASSED&quot; back to Home screen.
  <br/>
  When the user clicks &quot;back&quot; button or swipes back to the Home screen i want it to send some data to the Home screen.<br/>
  How do i do this?</p>