title: React Native - React Navigation rerender panel on goBack()
body: <p>I am using <a href="https://reactnavigation.org/" rel="noreferrer">React Navigation</a> in my app. How can I refresh the data on my previous panel when going back to it? </p>
  
  <p>A practical example would be:
  I am currently in <strong>Panel A</strong>, I navigate to <strong>Panel B</strong> where I update data in my database which is displayed in <strong>Panel A</strong>. After I <em>goBack()</em> to <strong>Panel A</strong> after changing the data in the database I wish <strong>Panel A</strong> has now rerendered and holds the new data from the database.</p>
  
  <p>I have read that I can pass a custom refresh function as params to the child class and call it before navigating back, however I think this is not a neat way to achieve what I want since I update a component which is not yet mounted and I can just throw an error.</p>