title: React Native (View) onLayout does not execute functions
body: <p>I've been trying to get some values from the onLayout prop in a View component. </p>
  
  <p>This is the View that gets returned in the render function:</p>
  
  <pre><code>&lt;View onLayout={this.onLayout}&gt;
      &lt;Text&gt;Hello&lt;/Text&gt;
  &lt;/View&gt;
  </code></pre>
  
  <p>Then this is the onLayout function that is in the same class</p>
  
  <pre><code>onLayout = () =&gt; {
    console.log("hello")
  }
  </code></pre>
  
  <p>The console log is never done. But if I call <code>console.log("hello")</code> from within the onLayout prop it does show in the console.</p>
  
  <pre><code>&lt;View onLayout={console.log("Hello")}&gt;
      &lt;Text&gt;Hello&lt;/Text&gt;
  &lt;/View&gt;
  </code></pre>
  
  <p>This has had me mindblown for the past 4 hours. I've tried everything I could find here on stackoverflow and GitHub.</p>
  
  <p>Am I just doing something very wrong?</p>