title: React native how to call functions of parent class
body: <p>I have a class main which holds another class terms like so</p>
  
  <pre><code>return(
  &lt;View&gt;
    &lt;Terms&gt;&lt;/Terms&gt;
  &lt;/View&gt;
  )
  </code></pre>
  
  <p>in the main class I have a function that I want to call from the Terms class, How would that work?  </p>