-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.js
80 lines (75 loc) · 2.2 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import React from 'react';
import {View, Button, StyleSheet, Image, Text} from 'react-native';
import Home from './Home.js';
import Youtube from "./src/Components/YoutubeAPI/YoutubePage"
import Angry from './src/moods/Angry';
import Bored from './src/moods/Bored';
import Excited from './src/moods/Excited';
import Fear from './src/moods/Fear';
import Happy from './src/moods/Happy';
import Sad from './src/moods/Sad';
import PastNotes from './src/PastNotes';
import HomeScreen from './src/Components/HomeScreen.js';
import logo from './images/splashimage.png';
import gluck from './images/gluck.png';
import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import Diary from './src/Components/Diary.js';
import Dashboard from './src/Components/Dashboard.js';
import Navbar from './src/Components/Navbar';
import Prevnotes from './src/Components/Prevnotes';
import Emergency from './src/Components/seekhelp.js';
import Metime from './src/Components/Metime';
import Media from './src/Components/Media';
import Addfeeditem from './src/Components/Feed/AddfeedItem';
import Login from './Login.js';
import Signup from './Signup.js';
// import Save from '.src/Components/Diary'
/*export default class App extends React.Component{
render(){
return(<AppTabNavigator/>);
}
}*/
const AppNavigator = createStackNavigator({
Login: Login,
Home: {
screen: Home,
navigationOptions: {
headerLeft: <Image source={logo} style={{width: 50, height: 50}} />,
headerBackground: (
<Image
source={gluck}
style={{marginRight: 100, width: '100%', height: 50}}
/>
),
headerStyle: {
backgroundColor: '#e3e3e3',
},
},
},
Youtube:Youtube,
diary: {
screen: Diary,
// navigationOptions:{
// headerRight:
// },
},
Signup: Signup,
dashboard: Dashboard,
emergency: Emergency,
Happy: Happy,
Bored: Bored,
addfeeditem: Addfeeditem,
Sad: Sad,
Fear: Fear,
Angry: Angry,
metime: Metime,
Excited: Excited,
HomeS: Home,
prevnotes: Prevnotes,
pastnotes: PastNotes,
media: Media,
navbar: Navbar,
headerMode: 'none',
});
export default createAppContainer(AppNavigator);