forked from impracticalcoders/ComfortZone-SIH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
43 lines (32 loc) · 902 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
34
35
36
37
38
39
40
41
42
import React from 'react';
import {View,Button} from 'react-native'
import Home from './Home.js'
import logo from './images/splashimage.jpg'
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import Dashboard from './src/Dashboard.js';
import Diary from "./src/Diary"
import {Image} from 'react-native'
const AppNavigator = createStackNavigator({
splashscreen:{
screen:Home,
navigationOptions: {
title: 'Home',
headerLeft: <Image source ={logo} style={{width: 50, height: 50}} /> ,
headerStyle: {
backgroundColor: '#e3e3e3',
},
headerTintColor: '#606070',
}
},
diary:{
screen:Diary,
navigationOptions:{
headerTitle:'Your diary'
}
},
dashboard:Dashboard,
HomeS:Home,
headerMode:'none',
});
export default createAppContainer(AppNavigator);