-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
50 lines (44 loc) · 1.17 KB
/
App.js
File metadata and controls
50 lines (44 loc) · 1.17 KB
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
// import React, { Component } from 'react';
// import {
// Platform,
// StyleSheet,
// Text,
// View
// } from 'react-native';
// import Routes from './components/Routes';
// export default class App extends Component {
// render() {
// return (
// <Routes/>
// );
// }
// }
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View
} from 'react-native';
import { Router, Scene } from 'react-native-router-flux';
// import the different screens
import Loading from './components/Loading'
import SignUp from './components/Register'
import Login from './components/LoginScreen'
import Main from './components/Main'
import Feedback from './components/Feedback'
export default class App extends Component {
render(){
return (
<Router>
<Scene key="root">
{/* <Scene key="Home"component={Home} /> */}
<Scene key="Main" component={Main}/>
<Scene key="Login" component={Login}/>
<Scene key="SignUp" component={SignUp}/>
<Scene key="Feedback" component={Feedback}/>
<Scene key="Loading" component={Loading} initial/>
</Scene>
</Router>
);
}}