Index
DrawerNavigator
import React, { Component } from 'react';
import { createDrawerNavigator } from 'react-navigation-drawer';
import { createAppContainer } from 'react-navigation';
import Home from "./app/components/Home/Index"
import Dashboard from "./app/components/Dashboard/Index"
class App extends Component {
render() {
return ( <MyApp /> );
}
}
export default App;
const AppStack = createDrawerNavigator({
home: {
screen: Home,
},
dashboard: {
screen: Dashboard
}
})
const MyApp = createAppContainer(AppStack);
import { createDrawerNavigator } from 'react-navigation-drawer';
import { createAppContainer } from 'react-navigation';
import Home from "./app/components/Home/Index"
import Dashboard from "./app/components/Dashboard/Index"
class App extends Component {
render() {
return ( <MyApp /> );
}
}
export default App;
const AppStack = createDrawerNavigator({
home: {
screen: Home,
},
dashboard: {
screen: Dashboard
}
})
const MyApp = createAppContainer(AppStack);