This repository has been archived on 2025-06-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dusken-client/src/Dusken.js
T
nikolark 4ff91f6774 Fix membership logout button
Also improve menu icons
2017-08-18 01:33:05 +02:00

52 lines
1.4 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import React from 'react';
import {connect} from "react-redux";
import {Platform} from 'react-native';
import {TabNavigator, StackNavigator} from "react-navigation";
import AboutScreen from "./screens/AboutScreen";
import EventDetailsScreen from "./screens/EventDetailsScreen";
import EventListScreen from "./screens/EventListScreen";
import LoginScreen from "./screens/LoginScreen";
import MembershipScreen from "./screens/MembershipScreen";
/* Navigation */
const tabBarRoutes = {
EventList: { screen: EventListScreen },
Membership: { screen: MembershipScreen },
About: { screen: AboutScreen },
};
const tabBarOptions = {
tabBarPosition: 'bottom',
tabBarOptions: {
style: {
backgroundColor: "#fff"
},
indicatorStyle: {
backgroundColor: "#f58220"
},
activeTintColor: '#f58220',
inactiveTintColor: '#333333',
showIcon: true,
labelStyle: {
fontSize: 10,
marginBottom: 0,
...Platform.select({
android: {
fontWeight: 'bold',
}
}),
},
}
};
const tabNav = TabNavigator(tabBarRoutes, tabBarOptions);
const DuskenContainer = StackNavigator({
Root: { screen: tabNav },
Login: { screen: LoginScreen },
EventDetails: { screen: EventDetailsScreen },
});
export default connect()(DuskenContainer);