title: In react native how to reuse functions?
body: <p><strong>I need access functions from another page in react native .</strong></p>
  
  <p>Example :</p>
  
  <pre><code>validateEmail = (email) =&gt; {
  // ---- Code ----
  }
  </code></pre>
  
  <p>I need access that function in both login.js and registration.js </p>