-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
74 lines (70 loc) · 2.16 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
71
72
73
74
import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { Bar, SingleCocktail, AllCocktails, Mixers, SearchCocktails } from './components/index'
import { Router, Scene, Tabs } from 'react-native-router-flux'
import {Provider} from 'react-redux'
import store from './store'
const TabIcon = ({selected, title}) => {
return(
<Text style={{color: selected ? 'blue' : 'grey'}}>{title}</Text>
)
}
export default class App extends React.Component {
constructor(props){
super(props);
this.state = {
isLoading: true,
cocktails: [],
AlcoholicIngredients: [],
}
}
render() {
return (
<Provider store={store}>
<Router>
<Scene key="root">
{/*<Scene tabs={true} tabBarStyle={{backgroundColor: 'white'}} hideNavBar={true}>
<Scene key="mixer" title="Mixer" icon={TabIcon}> */}
<Scene
key="Bar"
component={Bar}
title="The Bar"
initial
/>
<Scene
key="SingleCocktail"
component={SingleCocktail}
title="SingleCocktail"
/>
<Scene
key="AllCocktails"
component={AllCocktails}
title="Cocktails"
/>
<Scene
key="Mixers"
component={Mixers}
title="The Cabinet"
/>
{/*</Scene>
<Scene key="Search" title="Search" icon={TabIcon} >
<Scene
key="Search"
component={SearchCocktails}
title="The Book"
/>
</Scene>
</Scene>*/}
</Scene>
</Router>
</Provider>
)}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});