title: React Native Navigator renderScene called multiple times
body: <p>I've been stumped for a while with RN Navigator trying to figure out why Navigator renders all the routes pushed in its stack.</p>
  
  <p>Initially </p>
  
  <pre><code>&lt;Navigator initialRoute={{name:"Route 1", index: 1}} /&gt;
  </code></pre>
  
  <p>Then upon issuing a <code>navigator.push({ name : "Route 2", index: 2 })</code> the render() method of my component gets called which re-renders Navigator, which in turn calls <code>renderScene</code>.</p>
  
  <p>After pushing the 2nd route and logging the route when renderScene gets called yields to:</p>
  
  <blockquote>
    <p>Render() --> renderScene(),
    {name:"Route 1", index: 1}</p>
    
    <p>Render() --> renderScene(),
    {name:"Route 2", index: 2}</p>
  </blockquote>
  
  <p>Does anyone know why the renderScene() gets called as many times as there are routes inside the Navigator's stack? Is this is expected behaviour and if it is how can we speed up the rendering? </p>
  
  <p>There is a significant performance hit when trying to render scenes of 5 routes before finally rendering the scene for the last pushed route, when in reality it should be calling render() once for rendering only the scene of the last pushed route.</p>
  
  <p>Any help is greatly appreciated.
  Thank you!</p>
  
  <p>These are the relevant snippets:</p>
  
  <pre><code>nav.js
  
  export function ListPage(){
      return {
          name: LIST_PAGE,
          index: 1
      }
  }
  
  
  Main App
  
  &lt;Navigator
          ref={(ref) =&gt; this.navigator = navigator = ref}
          initialRoute={nav.ListPage()}
          renderScene={(route,navigator)=&gt;this.renderListingsScene(route,navigator)}
   /&gt;
  
  renderListingsScene(route, navigator){
          console.log("renderScene()", route);
  
  }
  </code></pre>