import React from "react" ; import { createDrawerNavigator , createAppContainer } from "react-navigation" ; import HomeStack from "./HomeStack" ; import { View , Text } from "react-native" ; const Root = createDrawerNavigator ( { HomeStackScreen : { screen : HomeStack , navigationOptions : { title : "Home" } } } , { drawerWidth : 300 , initialRouteName : 'HomeStackScreen' , } ) ; const ContainerRoot = createAppContainer ( Root ) ; export default ContainerRoot ;