-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
70 lines (64 loc) · 1.91 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
import React from 'react';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
import Home from './src/components/screens/home';
import { Router, Scene, Actions} from 'react-native-router-flux'
import Login from './src/components/Login/Login'
import ScanScreen from './src/components/screens/qrscanner';
import LandingView from './src/components/Login/azurelogin';
import Tabbar from './src/components/screens/tabsscreen';
export default class App extends React.Component {
// onBackPress(){
// if (Actions.currentScene === 'tabbar'){
// return false;
// }
// Actions.pop()
// return true;
// }
render() {
return (
<Router>
<Scene key="root">
<Scene
key="login"
component={Login}
title="Login"
hideNavBar
initial
/>
<Scene
key="home"
component={Home}
title="Room Cleaning App"
/>
<Scene
key="scanner"
component={ScanScreen}
title="QR Scanner"
/>
<Scene
key="mslogin"
component={LandingView}
title="Login"
/>
<Scene
key="tabbar"
component={Tabbar}
title="Room Cleaning App"
renderLeftButton={()=>(null)}
hideBackImage
hideNavBar
//initial
/>
</Scene>
</Router>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});