title: Native Base spinner not working
body: <p>I am trying to show a spinner on press of button in react-native, native-base after username is entered. It is not working. Here are my steps and  code:</p>
  
  <p>Steps:</p>
  
  <ol>
  <li>set loading true in constructor</li>
  <li>set loading false after fetching data</li>
  <li><p>if loading true render spinner else load other screen.</p>
  
  <pre><code>constructor(props) {
          super(props);
          this.state = {
      loading: true,  
  }
  handleLoginPressed = async () =&gt; {
  
  //some code
  
       let resp = await tryAsk(this.state.sampleQuestion, this.state.username);
       this.setState({            
                loading: false
            });
  
  }
  
  render() {
  if (this.state.fontsAreLoaded == true) {
    if (this.state.isLoggedIn === true) {
      if (this.state.loading === true){
        &lt;View&gt;&lt;Spinner /&gt;&lt;/View&gt;
      }else{   
      return (
        &lt;Somescreen/&gt;
      );
    }    
  }
  </code></pre></li>
  </ol>