title: Access Class Method From Outside - React Native
body: <p>I have the following class:</p>
  
  <pre><code>class Comp extends React.Component{
    onBack {
        navigator.pop();
    }
  }
  </code></pre>
  
  <p>I want to able to access the class in the following function, which located in the main scope of my app but can't get it to work:</p>
  
  <pre><code>BackAndroid.addEventListener('hardwareBackPress', function() {
      Comp.onBack();
      return true;
  });
  </code></pre>
  
  <p>Am I missing something here?</p>