title: React native push notifications Enable/Disable
body: <p>Hi everyone I setup  <code>react-native-push-notification</code> in my app with theese packages</p>
  <pre><code>import PushNotification from 'react-native-push-notification';
   import PushNotificationIOS from '@react-native-community/push-notification-ios';
  
  import firebase from '@react-native-firebase/app';
  import '@react-native-firebase/messaging';
  </code></pre>
  <p>I cant send ,show and click notificaitons thats all okay.</p>
  <p>I just want to disable to show notification when app in the Messages screen.</p>
  <p>in screen</p>
  <pre><code>import PushNotification from 'react-native-push-notification';
  import firebase from '@react-native-firebase/app';
  import '@react-native-firebase/messaging';
  
    componentDidMount() {
       this._unsubscribe = this.props.navigation.addListener('focus', () =&gt; {     
        this.getMessageUsersList();
        //PushNotification.abandonPermissions()
        Orientation.lockToPortrait();
      });
      
      PushNotification.abandonPermissions()
  </code></pre>
  <p>function</p>
  <pre><code> requestPermissions  () {
      firebase
        .messaging()
        .requestPermission()
        .then((status: FirebaseMessagingTypes.AuthorizationStatus) =&gt; {
          console.log('requestPermissions')
          if (status === 1) {
            console.log('Authorized');
          //  onMessage();
          } else {
            console.log('Not authorized');
          }
        })
        .catch((e) =&gt; console.log(e));
    };
  </code></pre>
  <p>unmount</p>
  <pre><code>  componentWillUnmount() {
   
      this.requestPermissions()
    }
  </code></pre>
  <p>It really disables notificatons but when I anvigate to antother screen , it still disabled so I can't show notification.</p>
  <p>What should I change. Thank you</p>