title: Stop Appstate event trigger when user logs out
body: <p>I have this code using AppState to show a user a modal where  finger print scan is required to unlock the app once the app goes to background and comes back to active
  In useEffect of the HomeScreen</p>
  <pre><code>  AppState.addEventListener('change', this.handleAppStateChange);
  
      return () =&gt; {
        AppState.removeEventListener('change', this.handleAppStateChange);
      };
  
  </code></pre>
  <p>method</p>
  <pre><code>  handleAppStateChange (nextAppState){
      if (nextAppState === 'active') {
       
       this.props.navigation.navigate('AuthModal');
       
      }
  </code></pre>
  <p>This all works fine and good. On a separate screen where I have my logout, when I logout  and get navigated to the login screen, the appState event is still triggered and I don't want that. The event should only be restricted to the AuthStack. I have tried a couple of things but no luck, how do I handle this?</p>