title: why splash screen not showing in react native?
body: <p>i am trying to make a splash screen but it doesn't show any way</p>
  
  <pre><code>App:
  
  import React, { Component } from 'react';
  import { Text, View, StyleSheet, Image,Button,backgroundImage, Dimensions } from 'react-native';
  import { Constants } from 'expo';
  import Box from './src/box';
  import splash from './src/splash'
  //import ImagesExample from './ImagesExample.js'
  
  export default class App extends React.Component {
  
  componentWillMount() {
          setState = {
              View : &lt;splash /&gt;
          };
  
  
          setTimeout(() =&gt; {
              //IF FALSE NAVIGATE TO ERROR
              if(true) {
                  this.setState({
                      View : &lt;splash/&gt;
                  })
              } else {
                  this.setState({
                      View : &lt;splash/&gt;
                  })
              }
          }, 2000) //TIME OF WAITING
  
  
      }
  
    render() {
      return (
        &lt;View style={{flex: 1,justifyContent: 'center',}}&gt;
  
         &lt;Image
                    source={require('./assets/hamburger.png')}
                    resizeMode="cover"
                    style={styles.background}
                  &gt;
                  &lt;/Image&gt;
  
        &lt;View style={{justifyContent: 'center',flex:5}}&gt;
  
  splash:
  
  import React from 'react';
  import { StatusBar , View , Text , ActivityIndicator } from 'react-native';
  
  export default class splash extends React.Component {
  
     render() {
         return (
  
  
  &lt;View style={{ flex: 1 , justifyContent: 'center' , alignItems: 'center' , backgroundColor : '#34495e'}}&gt;
  
                  &lt;Text style={{ color : 'white',fontSize : 18 }}&gt;Hello Splash&lt;/Text&gt;
                  &lt;ActivityIndicator color={'white'}/&gt; //YOUR SPINNER WAITING
              &lt;/View&gt;
  
  
         );
     }
  }
  </code></pre>