-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
77 lines (62 loc) · 2.33 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
import { Platform } from 'react-native'
import React, {Component, useState, useEffect} from 'react';
import { createAppContainer, TabNavigator } from 'react-navigation';
import { NavigationActions, StackActions } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import { Provider } from 'react-redux';
import store from './redux/store.js'
import AsyncStorage from '@react-native-community/async-storage'
//import BackgroundTimer from 'react-native-background-timer';
//IMPORTATION OF VIEW COMPONENTS
import Query from './clientViews/query.js';
import {Home} from './clientViews/home.js';
import {QueryChat} from './clientViews/queryChat.js';
import ClientRegister from './clientViews/register.js';
import ClientProfile from './clientViews/clientProfile.js';
import CaseChat from './clientViews/caseChat.js';
import VoiceRecognition from './specialComponents/VoiceRecognition.js';
import VideoComponent from './specialComponents/videoComponent.js';
import LawyerRegister from './lawyerView/lawyerRegister.js';
import LawyerLogin from './lawyerView/lawyerLogin.js';
import ThanksMsg from './lawyerView/thanksMsg.js';
import LawyerProfile from './lawyerView/lawyerProfile.js';
import LawyerCaseChat from './lawyerView/lawyerCaseChat.js';
const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
android: 'Double tap R on your keyboard to reload,\n' + 'Shake or press menu button for dev menu',
});
const AppNavigator = createStackNavigator(
{
Home: {screen: Home},
QueryChat: QueryChat,
Query: Query,
ClientRegister: ClientRegister,
ClientProfile: ClientProfile,
CaseChat: CaseChat,
VoiceRecognition: VoiceRecognition,
videoComponent: VideoComponent,
LawyerRegister: LawyerRegister,
LawyerLogin: LawyerLogin,
ThanksMsg: ThanksMsg,
LawyerProfile: LawyerProfile,
LawyerCaseChat: LawyerCaseChat,
},
{
headerMode: 'none',},
{
initialRouteName: 'Home',
}
);
/*const intervalId = BackgroundTimer.setInterval(() => {
// this will be executed every 200 ms
// even when app is the the background
console.log('tic');
}, 2000);*/
const AppContainer = createAppContainer(AppNavigator);
export default function App() {
return(
<Provider store={store}>
<AppContainer />
</Provider>
)
}