-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
45 lines (39 loc) · 1.06 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React from 'react';
import {StyleSheet} from 'react-native';
import {Component} from 'react';
import {Colors} from 'react-native/Libraries/NewAppScreen';
import Login from './src/components/Login';
import Signup from './src/components/Signup';
import UserAuth from './src/components/UserAuth.js';
import CurrentBet from './src/components/CurrentBet.js';
import TabContainer from './src/components/TabContainer.js';
//import CustomHeader from './src/components/CustomHeader.js';
import {createSwitchNavigator, createAppContainer} from 'react-navigation';
/*const App: () => React$Node = () => {
return <Signup />;
};*/
const SwitchNavigator = createSwitchNavigator(
{
Auth: UserAuth,
App: TabContainer,
//Header: CustomHeader,
},
{
initialRouteName: 'Auth',
},
);
const AppContainer = createAppContainer(SwitchNavigator);
// export AppContainer;
class App extends Component {
render() {
return <AppContainer />;
}
}
export default App;