- Cleanup
This commit is contained in:
@@ -3,9 +3,9 @@ import { Dimensions, Platform } from 'react-native';
|
||||
import { createBottomTabNavigator, createStackNavigator } from 'react-navigation';
|
||||
import { Icon } from 'react-native-elements';
|
||||
|
||||
import AppHeader from './Components/AppHeader/AppHeader.js';
|
||||
import AppHeader from './components/AppHeader/AppHeader.js';
|
||||
|
||||
import Auction from './screen/Auction.container.js';
|
||||
import Auction from './screens/Auction.container.js';
|
||||
import Checkout from './screens/Checkout.js';
|
||||
import Event from './screens/Event.container.js';
|
||||
import Events from './screens/Events.container.js';
|
||||
@@ -50,43 +50,43 @@ export const Tabs = createBottomTabNavigator({
|
||||
export const SignInOrRegisterStack = createStackNavigator({
|
||||
SignInOrRegister: {
|
||||
screen: SignInOrRegister,
|
||||
navigationOptions: ({ navigation }) => {
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false
|
||||
},
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
Register: {
|
||||
screen: Register,
|
||||
navigationOptions: ({ navigation }) => {
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false
|
||||
},
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
||||
export const AuctionStack = createStackNavigator({
|
||||
Auction: {
|
||||
screen: Auction,
|
||||
navigationOptions: ({navigation}) => ({
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
}),
|
||||
},
|
||||
Item: {
|
||||
screen: Item,
|
||||
navigationOptions: ({navigation}) => ({
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
ImageDetail: {
|
||||
screen: ImageDetail,
|
||||
navigationOptions: ({navigation}) => ({
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
});
|
||||
@@ -94,32 +94,32 @@ export const AuctionStack = createStackNavigator({
|
||||
export const BazaarStack = createStackNavigator({
|
||||
Bazaar: {
|
||||
screen: Marketplace,
|
||||
navigationOptions: ({navigation}) => ({
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
}),
|
||||
},
|
||||
Item: {
|
||||
screen: Item,
|
||||
navigationOptions: ({navigation}) => ({
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
ImageDetail: {
|
||||
screen: ImageDetail,
|
||||
navigationOptions: ({navigation}) => ({
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
Checkout: {
|
||||
screen: Checkout,
|
||||
navigationOptions: ({navigation}) => ({
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: null,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
},
|
||||
});
|
||||
@@ -130,7 +130,7 @@ export const EventsStack = createStackNavigator({
|
||||
navigationOptions: ({ navigation }) => ({
|
||||
header: <AppHeader navigation={navigation} />,
|
||||
tabBarVisible: false,
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}),
|
||||
}
|
||||
});
|
||||
@@ -141,30 +141,30 @@ export const createRootNavigator = () => {
|
||||
AuctionStack: {
|
||||
screen: AuctionStack,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}
|
||||
},
|
||||
BazaarStack: {
|
||||
screen: BazaarStack,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}
|
||||
},
|
||||
EventsStack: {
|
||||
screen: EventsStack,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}
|
||||
},
|
||||
Tabs: {
|
||||
screen: Tabs,
|
||||
navigationOptions: {
|
||||
gesturesEnabled: false
|
||||
gesturesEnabled: false,
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
mode: "modal"
|
||||
mode: "modal",
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user