title: Remove screen from stack navigator
body: <p>I’ve observed Back button logic works seeing the sequence of screens in the stack. I’ve a Drawer navigator placed inside stack navigator. </p>
  
  <p>On top of the stack I’ve Splash screen. On Dashboard when I press back button it takes me to splash screen. </p>
  
  <p>How can I remove splash screen from stack after entering in the app, So when I press back button Dashboard it will EXIT the app instead of taking to SPLASH SCREEN.</p>
  
  <pre><code>/* @flow */
  
  import React from "react";
  import { Platform, Text } from "react-native";
  import { Root } from "native-base";
  import { StackNavigator, DrawerNavigator} from "react-navigation";
  import Register from "./components/Register";
  import Available from "./components/Available";
  import Splash from "./components/splash/“;
  import SideBar from "./components/sidebar";
  import Discover from "./components/Discover/";
  import Dashboard from "./components/Dashboard/";
  import Contact from "./components/Contact"
  
  
  
  const Drawer = DrawerNavigator(
    {
      Dashboard: { screen: Dashboard },
      Discover: { screen: Discover },
      Contact: { screen: Contact},
        },
    {
      navigationOptions: {
        gesturesEnabled: false,
      },
     initialRouteName: "Dashboard",
      contentOptions: {
        activeTintColor: "#e91e63"
      },
      drawerPosition: 'right',
      contentComponent: props =&gt; &lt;SideBar {...props} /&gt;
    }
  );
  
  
  const AppNavigator = StackNavigator(
      {
        Splash: { screen: Splash },
        Drawer: { screen: Drawer },                           
        Available: { screen: Available },
          Register: { screen: Register },
      },
      {
         //  initialRouteName: “Splash”,
           headerMode: "none",
      }
  );
  
  export default () =&gt;
      &lt;Root&gt;
          &lt;AppNavigator /&gt;
      &lt;/Root&gt;;
  </code></pre>