-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
33 lines (29 loc) · 847 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//import Screens
import HomeScreen from "./screens/HomeScreen";
import AddNewContactScreen from "./screens/AddNewContactScreen";
import EditContactScreen from "./screens/EditContactScreen";
import ViewContactScreen from "./screens/ViewContactScreen";
//import React-Naviagtion
import {createAppContainer,createStackNavigator} from "react-navigation";
//create navigator to navigate to screens
const MainNavigator=createStackNavigator(
{
Home:{screen:HomeScreen},
Add:{screen:AddNewContactScreen},
Edit:{screen:EditContactScreen},
View:{screen:ViewContactScreen}
},
{
defaultNavigationOptions:{
headerTintColor:"#fff",
headerStyle:{
backgroundColor:"#45CE30"
},
headerTitleStyle:{
color:"#fff"
}
}
}
)
const App=createAppContainer(MainNavigator);
export default App;