-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
59 lines (56 loc) · 1.84 KB
/
App.tsx
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
import { Platform, StatusBar } from 'react-native';
import Landing from './components/Landing/Landing';
import Profile from './components/Profile/Profile';
import Menu from './components/Menu/Menu';
import Loading from './components/Loading/Loading';
import Vibecheck from './components/Vibecheck/Vibecheck';
import Login from './components/Login/Login';
import {createAppContainer} from 'react-navigation';
import {createStackNavigator} from 'react-navigation-stack';
import colors from './styles/colors';
const Navigator = createStackNavigator({
Loading: {screen: Loading, navigationOptions: {
headerShown: false,
cardStyle: {
paddingTop: Platform.OS === 'ios' ? 20 : StatusBar.currentHeight,
backgroundColor: colors.black,
}
}},
Landing: {screen: Landing, navigationOptions: {
headerShown: false,
cardStyle: {
paddingTop: Platform.OS === 'ios' ? 20 : StatusBar.currentHeight,
backgroundColor: colors.black,
},
}},
Vibecheck: {screen: Vibecheck, navigationOptions: {
headerShown: false,
cardStyle: {
paddingTop: Platform.OS === 'ios' ? 20 : StatusBar.currentHeight,
backgroundColor: colors.black,
},
}},
Login: {screen: Login, navigationOptions: {
headerShown: false,
cardStyle: {
paddingTop: Platform.OS === 'ios' ? 20 : StatusBar.currentHeight,
backgroundColor: colors.black,
},
}},
Menu: {screen: Menu, navigationOptions: {
headerShown: false,
cardStyle: {
paddingTop: Platform.OS === 'ios' ? 20 : StatusBar.currentHeight,
backgroundColor: colors.black,
}
}},
Profile: {screen: Profile, navigationOptions: {
headerShown: false,
cardStyle: {
paddingTop: Platform.OS === 'ios' ? 20 : StatusBar.currentHeight,
backgroundColor: colors.black,
},
}},
});
const App = createAppContainer(Navigator);
export default App;