- Linting... Prettier...
This commit is contained in:
298
app/router.js
298
app/router.js
@@ -16,155 +16,177 @@ import Profile from './screens/Profile.container.js';
|
||||
import Register from './screens/Register.js';
|
||||
import SignInOrRegister from './screens/SignInOrRegister.js';
|
||||
|
||||
export const Tabs = createBottomTabNavigator({
|
||||
'Event': {
|
||||
screen: Event,
|
||||
navigationOptions: {
|
||||
tabBarLabel: 'Event',
|
||||
tabBarIcon: ({ tintColor }) => <Icon name="black-tie" type="font-awesome" size={28} color={tintColor} />,
|
||||
},
|
||||
},
|
||||
'Auction': {
|
||||
screen: Auction,
|
||||
navigationOptions: {
|
||||
tabBarLabel: 'Silent Auction',
|
||||
tabBarIcon: ({ tintColor }) => <Icon name="gavel" type="font-awesome" size={28} color={tintColor} />,
|
||||
},
|
||||
},
|
||||
'Bazaar': {
|
||||
screen: Marketplace,
|
||||
navigationOptions: {
|
||||
tabBarLabel: 'Bazaar',
|
||||
tabBarIcon: ({ tintColor }) => <Icon name="store" type="fontisto" size={28} color={tintColor} />,
|
||||
},
|
||||
},
|
||||
'Profile': {
|
||||
screen: Profile,
|
||||
navigationOptions: {
|
||||
tabBarLabel: 'Profile',
|
||||
tabBarIcon: ({ tintColor }) => <Icon name="ios-person" type="font-awesome" size={28} color={tintColor} />,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const SignInOrRegisterStack = createStackNavigator({
|
||||
SignInOrRegister: {
|
||||
screen: SignInOrRegister,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
Register: {
|
||||
screen: Register,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
SignInOrRegister: {
|
||||
screen: SignInOrRegister,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
Register: {
|
||||
screen: Register,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
export const AuctionStack = createStackNavigator({
|
||||
Auction: {
|
||||
screen: Auction,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
}),
|
||||
},
|
||||
Item: {
|
||||
screen: Item,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
ImageDetail: {
|
||||
screen: ImageDetail,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
Auction: {
|
||||
screen: Auction,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
}),
|
||||
},
|
||||
Item: {
|
||||
screen: Item,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
ImageDetail: {
|
||||
screen: ImageDetail,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
export const BazaarStack = createStackNavigator({
|
||||
Bazaar: {
|
||||
screen: Marketplace,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
}),
|
||||
},
|
||||
Item: {
|
||||
screen: Item,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
ImageDetail: {
|
||||
screen: ImageDetail,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
Checkout: {
|
||||
screen: Checkout,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
Bazaar: {
|
||||
screen: Marketplace,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
}),
|
||||
},
|
||||
Item: {
|
||||
screen: Item,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
ImageDetail: {
|
||||
screen: ImageDetail,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
Checkout: {
|
||||
screen: Checkout,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
export const EventsStack = createStackNavigator({
|
||||
Events: {
|
||||
screen: Events,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
}
|
||||
Events: {
|
||||
screen: Events,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
Event: {
|
||||
screen: Event,
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
export const Tabs = createBottomTabNavigator({
|
||||
Event: {
|
||||
screen: EventsStack,
|
||||
navigationOptions: {
|
||||
tabBarLabel: 'Event',
|
||||
tabBarIcon: ({ tintColor }) => (
|
||||
<Icon name="black-tie" type="font-awesome" size={28} color={tintColor} />
|
||||
),
|
||||
},
|
||||
},
|
||||
Auction: {
|
||||
screen: AuctionStack,
|
||||
navigationOptions: {
|
||||
tabBarLabel: 'Silent Auction',
|
||||
tabBarIcon: ({ tintColor }) => (
|
||||
<Icon name="gavel" type="font-awesome" size={28} color={tintColor} />
|
||||
),
|
||||
},
|
||||
},
|
||||
Bazaar: {
|
||||
screen: BazaarStack,
|
||||
navigationOptions: {
|
||||
tabBarLabel: 'Bazaar',
|
||||
tabBarIcon: ({ tintColor }) => (
|
||||
<Icon name="store" type="fontisto" size={28} color={tintColor} />
|
||||
),
|
||||
},
|
||||
},
|
||||
Profile: {
|
||||
screen: Profile,
|
||||
navigationOptions: {
|
||||
tabBarLabel: 'Profile',
|
||||
tabBarIcon: ({ tintColor }) => (
|
||||
<Icon name="ios-person" type="font-awesome" size={28} color={tintColor} />
|
||||
),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const createRootNavigator = () => {
|
||||
return StackNavigator(
|
||||
{
|
||||
AuctionStack: {
|
||||
screen: AuctionStack,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
}
|
||||
},
|
||||
BazaarStack: {
|
||||
screen: BazaarStack,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
}
|
||||
},
|
||||
EventsStack: {
|
||||
screen: EventsStack,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
}
|
||||
},
|
||||
Tabs: {
|
||||
screen: Tabs,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
mode: "modal",
|
||||
}
|
||||
);
|
||||
return StackNavigator(
|
||||
{
|
||||
AuctionStack: {
|
||||
screen: AuctionStack,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
},
|
||||
},
|
||||
BazaarStack: {
|
||||
screen: BazaarStack,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
},
|
||||
},
|
||||
EventsStack: {
|
||||
screen: EventsStack,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
},
|
||||
},
|
||||
SignInOrRegisterStack: {
|
||||
screen: SignInOrRegister,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
},
|
||||
},
|
||||
Tabs: {
|
||||
screen: Tabs,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
mode: 'modal',
|
||||
},
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user