title: how to pass the results of a function from one component to another in react-native?
body: <p>I have a component that runs a function and returns a result but I need the rest of my components to access that data from the function. How would I be able to do that?</p>
  
  <p>Here is my app.js that contains the components. This is an example but my question is how would I run a function in Camera component and then reference the data in the Display component. </p>
  
  <pre><code>  export default class App extends React.Component {
  
    render() {
      return (
              &lt;View&gt;
                &lt;Camera /&gt;
              &lt;/View&gt;
              &lt;View&gt;
                &lt;Display /&gt;
              &lt;/View&gt;
  
      );
    }
  }
  </code></pre>