How to run code when returning to a page with React Navigation and React Native.
In a web react app you would use useEffect with an empty dependency for a lifecycle event such as the component mounting (first load). It doesn't work that way if you're using React Navigation with React Native.