BlueWallet/MainBottomTabs.js

51 lines
992 B
JavaScript
Raw Normal View History

2018-03-17 22:39:21 +02:00
import { TabNavigator } from 'react-navigation';
2018-01-30 22:42:38 +00:00
2018-03-17 22:39:21 +02:00
import transactions from './screen/transactions';
import wallets from './screen/wallets';
import send from './screen/send';
import settins from './screen/settings';
import receive from './screen/receive';
2018-01-30 22:42:38 +00:00
/**
*
* @type {AppStorage}
*/
2018-03-17 22:39:21 +02:00
let BlueApp = require('./BlueApp');
2018-01-30 22:42:38 +00:00
const Tabs = TabNavigator(
{
Wallets: {
screen: wallets,
2018-03-17 22:39:21 +02:00
path: 'wallets',
2018-01-30 22:42:38 +00:00
},
Transactions: {
screen: transactions,
2018-03-17 22:39:21 +02:00
path: 'trans',
2018-01-30 22:42:38 +00:00
},
Send: {
screen: send,
2018-03-17 22:39:21 +02:00
path: 'cart',
2018-01-30 22:42:38 +00:00
},
Receive: {
screen: receive,
2018-03-17 22:39:21 +02:00
path: 'receive',
2018-01-30 22:42:38 +00:00
},
Settings: {
screen: settins,
2018-03-17 22:39:21 +02:00
path: 'settings',
},
2018-01-30 22:42:38 +00:00
},
{
tabBarPosition: 'bottom',
animationEnabled: true,
tabBarOptions: {
activeTintColor: 'white',
activeBackgroundColor: '#33bdf1',
inactiveBackgroundColor: BlueApp.settings.brandingColor,
2018-03-17 22:39:21 +02:00
inactiveTintColor: 'white',
},
},
);
2018-01-30 22:42:38 +00:00
2018-03-17 22:39:21 +02:00
export default Tabs;