title: React native - Function call doesn't do anything
body: <p>Very new to react native and javascript...
  I am trying to call a function and it doesn't seem to do anything.</p>
  <p>Here is the fragment of code where the function is called:</p>
  <pre><code>&lt;View style={styles.rows}&gt;
     &lt;renderButtons/&gt;  //the function I want to call
     &lt;TouchableOpacity style={styles.interest_button} onPress={SettingsHandler}&gt;
        &lt;Text&gt;{&quot;  testdumdum  &quot;}&lt;/Text&gt;
     &lt;/TouchableOpacity&gt;   //test to ensure nothing is wrong w function itself
  &lt;/View&gt;
  </code></pre>
  <p>and there is the function I want to call:</p>
  <pre><code>const renderButtons = () =&gt; {
     return (
        &lt;TouchableOpacity style={styles.interest_button} onPress={SettingsHandler}&gt;
           &lt;Text&gt;{&quot;  testsmartsmart  &quot;}&lt;/Text&gt;
        &lt;/TouchableOpacity&gt;
     );
  }
  </code></pre>
  <p>Only the container &quot;testdumdum&quot; appears, and I don't know why since the function does basically the same thing for now.</p>
  <p>What should I do to fix this?</p>