title: How to refresh main App class rendering in React-Native from another class
body: <p>I'm trying to create my first App using React-Native,
  i've created a class which renders the authentication form, after handling the submit the App should render the Navigation Screen with its tabs. I think i can "refresh" in someway the App class rendering from the Authentication Screen so it can check again if the user has authenticated or not, but i'm not really sure</p>
  
  <p>App.Js:</p>
  
  <pre><code>import AuthScreen from './screens/AuthScreen';
  
  export default class App extends React.Component {
    state = {
      isLoadingComplete: false,
      isAuthenticated: false,
    };
  
    render() {
      if (!this.state.isLoadingComplete &amp;&amp; !this.props.skipLoadingScreen) {
        return (
          &lt;AppLoading
            startAsync={this._loadResourcesAsync}
            onError={this._handleLoadingError}
            onFinish={this._handleFinishLoading}
          /&gt;
        );
      } else {
        if(this.state.isAuthenticated == true) {
          return (
            &lt;View style={styles.container}&gt;
              &lt;StatusBar hidden = {true} /&gt;
              &lt;AppNavigator /&gt;
            &lt;/View&gt;
          );
        } else {
          return (
            &lt;View style={styles.container}&gt;
              &lt;StatusBar hidden = {true} /&gt;
              &lt;AuthScreen /&gt;
            &lt;/View&gt;
          );
        }
      }
    }
  </code></pre>
  
  <p>AuthScreen.js:</p>
  
  <pre><code>export default class AuthScreen extends Component {
    handleSubmit = () =&gt; {
      const value = this._form.getValue();
      console.log('value: ', value);
    }
  
    render() {
      return (
        &lt;View style={styles.container}&gt;
          &lt;View style={styles.auth_container}&gt;
            &lt;Form
              ref={c =&gt; this._form = c}
              type={User}
              options={options}
            /&gt;
            &lt;Button
              title="Submit"
              onPress={this.handleSubmit}
            /&gt;
          &lt;/View&gt;
        &lt;/View&gt;
      );
    }
  }
  </code></pre>