title: Run some code when drawer screen gets focused in React-Native
body: <p>So I have created a drawer navigator:</p>
  <pre><code> &lt;NavigationContainer &gt;
      &lt;Drawer.Navigator  initialRouteName=&quot;Home&quot;&gt;
  
        &lt;Drawer.Screen  name=&quot;Home&quot; component={HomeScreen} /&gt;
        &lt;Drawer.Screen name=&quot;Account&quot; component={AccountScreen} /&gt;
      &lt;/Drawer.Navigator&gt;
    &lt;/NavigationContainer&gt;
  </code></pre>
  <p>In the home screen, I want to run some code every time the user goes to that screen:</p>
  <pre><code>class HomeScreen extends Component {
       componentWillMount() {
          console.log('WHAT A WONDERFUL WORLD!');
          this.props.setUser();
       }
  </code></pre>
  <p>But it does work with componentWillMount. Is there any way I can detect when the user gets to that particular screen?</p>