-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (30 loc) · 710 Bytes
/
Copy pathApp.js
File metadata and controls
35 lines (30 loc) · 710 Bytes
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Component } from 'react';
import Login from './app/component/Login';
import Regin from './app/component/Regin';
import Index from './app/component/Index';
import UserIndex from './app/component/UserIndex';
import { StackNavigator } from 'react-navigation';
class App extends Component{
render(){
return(
<RootStack />
);
}
}
const RootStack = StackNavigator({
Index: {screen: Index},
Login: {screen: Login},
Regin: {screen: Regin},
UserIndex: {screen: UserIndex}
},{
initialRouteName: 'Login',
mode: 'card'
});
export default App