title: Cannot Navigate from Push Notification to Chosen Screen
body: <p>When the user clicks or presses the notification I want to have a particular screen open. I have been gone through various github issues and stack overflow questions and answers however there does not seem to be one answer or chosen way to go about this. </p>
  
  <p>Originally I used a PushController class to handle the onNotification function however not I have moved the configure and onNotification functions to the component did mount in my component where the local notification is being created. </p>
  
  <pre><code>this.props.navigation.navigate('RouteName'); 
  </code></pre>
  
  <p>Does not work. It says that <code>this.props.navigation</code> or <code>this.props.navigation.navigate</code> are undefined.  </p>
  
  <pre><code>PushNotification.
              onNotification(notification) {
                  console.log('onNotification')
                  console.log( notification );
  this.props.navigation.navigate('RegisterRoute');
              },
  
          });
  </code></pre>
  
  <p>What is the correct way to go about routing or navigating from notification to chosen screen. I cannot find a direct answer in the react-native-push-notification issues and documentation.</p>
  
  <p>Edit:
  This code can be found within the class where I call/make the local notification. 
  The notification is triggered and called, and when the notification is clicked or onNotification I would like to navigate or route to another screenn. </p>
  
  <p>Inside the component did mount.</p>
  
  <pre><code>PushNotification.configure({
  
              onNotification(notification) {
                  console.log('onNotification')
                  console.log( notification );
  this.props.navigation.navigate('ChosenScreen');
              },
  
  
          });
  </code></pre>
  
  <p>The function that calls and creates a local notification</p>
  
  <pre><code>function sendNotification(title, pushMessage){
          PushNotification.localNotification({
          message: pushMessage, 
          title: title,
          userInteraction: true,
          alertAction: 'default',// (optional) default: view
  
         autoCancel: true, 
         largeIcon: "logo", 
         smallIcon: "logo",
         vibrate: true, 
         vibration: 300,
  
         alertAction: 'default',
         userInfo: 'default'
  
        });
  
  }
  </code></pre>