-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
executable file
·52 lines (47 loc) · 1.56 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
import React, { Component } from 'react';
import { TabNavigator, StackNavigator, TabBarBottom } from 'react-navigation';
import Icon from 'react-native-vector-icons/FontAwesome';
import StartScreen from './App/Screens/StartScreen';
import DictionariesScreen from './App/Screens/DictionariesScreen';
import SettingsScreen from './App/Screens/SettingsScreen';
import WordListScreen from './App/Screens/WordListScreen'
export const DictionariesStack = StackNavigator({
DictionariesScreen: {
screen: DictionariesScreen,
navigationOptions: {
title:'Dictionaries',
},
},
WordListScreen: {
screen: WordListScreen,
},
});
export const Root = TabNavigator({
StartScreen: {
screen: StartScreen,
navigationOptions: {
tabBarLabel: 'Home',
tabBarIcon: ({ tintColor }) => <Icon name="home" size={25} color={tintColor} />,
},
},
DictionariesScreen: {
screen: DictionariesStack,
navigationOptions: {
tabBarLabel: 'Dictionaries',
tabBarIcon: ({ tintColor }) => <Icon name="th-list" size={25} color={tintColor} />,
},
},
/* SettingsScreen: {
screen: SettingsScreen,
navigationOptions: {
tabBarLabel: 'Settings',
tabBarIcon: ({ tintColor }) => <Icon name="cog" size={25} color={tintColor} />,
},
},*/
},{
tabBarComponent:TabBarBottom,
tabBarOptions:{
style: {height: 50},
},
tabBarPosition: 'bottom',
});