-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
32 lines (27 loc) · 805 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
//import all screen
import HomeScreen from './screens/HomeScreen';
import AddNewContactScreen from './screens/AddNewContactScreen';
import ViewContactScreen from './screens/ViewContactScreen';
import EditContactScreen from './screens/EditContactScreen';
import {createAppContainer,createStackNavigator} from 'react-navigation';
const MainNavigator = createStackNavigator(
{
Home : {screen: HomeScreen},
Add : {screen: AddNewContactScreen},
VieW : {screen: ViewContactScreen},
Edit : {screen: EditContactScreen},
},
{
defaultNavigationOptions:{
headerTintColor: '#fff',
headerStyle:{
backgroundColor : '#673ab7',
},
headerTitleStyle:{
color: '#fff'
}
}
}
)
const App = createAppContainer(MainNavigator);
export default App;