title: React Native: How to change parent component's state from child component and re-render parent?
body: <p>I have "RootComponent" which has a state <strong>isLoggedIn</strong> and loads <strong>Login</strong> and <strong>Home</strong> as:</p>
  
  <pre><code>..
  ..
  switch (this.state.isLoggedIn) {
  case 'true':
  return (
  &lt;Home /&gt;
  );
  
  case 'false':
  return (
  &lt;Login /&gt;
  );
  
  default:
  return &lt;Spinner size='large' color='red' /&gt;; 
  }
  ...
  </code></pre>
  
  <p>In <strong>Login</strong> I want to change <strong>isLoggedIn</strong> state when login button is pressed and rerender to <strong>Home</strong> screen. Without using Redux.</p>