-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
94 lines (88 loc) · 3.21 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import React, { Component } from 'react';
import { StyleSheet ,Text, View} from 'react-native';
import {StackNavigator} from 'react-navigation';
import * as firebase from "firebase";
import {Button} from 'react-native'
import Ionicons from "react-native-vector-icons/Ionicons";
import './Global/global.js'
import { SplashScreen, LoginScreen, SignupScreen, ForgotPassword,
HomeScreen, TestSelection, TestSetup,
VideoInfo, VideoPlayer2, Instructions, Instructions2, Instructions3, Instructions4, Instructions5, Instructions6, Instructions7, Instructions8, Instructions9, NewLancetAddition, Instructions10, BlueLancet, Instructions11, Instructions12, DualInstructions,
TakePicture, GuestTakePicture, PreResults, Results, GuestResults, SavedResults,
Resources, ResultInterpretation, TestAccuracy, WindowPeriod, Share, NearbyClinics, DiseasesInfo
} from './Screens';
firebase.initializeApp(firebaseConfig);
export default class App extends React.Component {
render() {
return(
<AppNavigator />
);
}
}
const AppNavigator = StackNavigator({
SplashScreen : {screen : SplashScreen},
LoginScreen : {screen : LoginScreen},
SignupScreen : {screen : SignupScreen},
// ForgotPassword : {screen : ForgotPassword},
HomeScreen : {screen: HomeScreen},
TestSelection : {screen : TestSelection},
TestSetup : {screen : TestSetup},
VideoInfo : {screen : VideoInfo},
VideoPlayer2 : {screen : VideoPlayer2},
Instructions : {screen : Instructions},
Instructions2 : {screen : Instructions2},
Instructions3 : {screen : Instructions3},
Instructions4 : {screen : Instructions4},
Instructions5 : {screen : Instructions5},
Instructions6 : {screen : Instructions6},
Instructions7 : {screen : Instructions7},
Instructions8: {screen : Instructions8},
Instructions9: {screen : Instructions9},
NewLancetAddition: {screen: NewLancetAddition},
Instructions10: {screen : Instructions10},
BlueLancet: {screen: BlueLancet},
Instructions11: {screen : Instructions11},
Instructions12: {screen : Instructions12},
DualInstructions: {screen: DualInstructions},
TakePicture: {screen : TakePicture},
GuestTakePicture: {screen : GuestTakePicture},
PreResults: {screen: PreResults},
Results: {screen : Results},
GuestResults: {screen : GuestResults},
SavedResults: {screen : SavedResults},
Resources: {screen : Resources},
ResultInterpretation: {screen : ResultInterpretation},
TestAccuracy: {screen : TestAccuracy},
WindowPeriod: {screen : WindowPeriod},
Share: {screen : Share},
NearbyClinics: {screen : NearbyClinics},
DiseasesInfo: {screen : DiseasesInfo},
NewLancetAddition: {screen :NewLancetAddition},
BlueLancet:{ screen: BlueLancet}
},
{
navigationOptions: ({ navigation}) => ({
headerBackTitle: 'Back',
headerRight: (
<Button
onPress={() => firebase.auth().signOut()
.then(function() {
navigation.navigate('LoginScreen');
})
.catch((error) => {
console.log(error);
})
}
title="Signout"
/>
),
})
});
const styles = StyleSheet.create({
container:{
flex: 1,
backgroundColor: '#00FFFF',
alignItems: 'center',
justifyContent: 'center',
},
});