title: How to redirect to a page in React Native?
body: <pre><code>this.props.navigator.push({
    component: MainView,
    passProps: {selectedTab: 'home', message: 'this is the messages'},
  });
  </code></pre>
  
  <p>Is this the only way to redirect page? That said, when condition hit, I want to render another page, what is the right way to do in React Native?</p>