-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
134 lines (131 loc) · 5.87 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import { StatusBar } from 'react-native';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import AppLoading from 'expo-app-loading';
import { useFonts } from 'expo-font';
import ButtonPrimaryBig from './src/components/ButtonPrimaryBig';
import { PrimaryColor, WhiteColor } from './src/styles/color';
import { RFValue } from 'react-native-responsive-fontsize';
import FastRunningIcon from './src/components/Svg';
import ProfileIcon from './src/components/Svg copy';
import { ProfileIconActive, ProfileIconInactive } from './src/svg/ProfileIcon';
import {
FavoriteIconActivated,
FavoriteIconInactive,
FavoriteIconPressed,
} from './src/svg/FavoriteIcon';
import ButtonSecondaryOutlineBig from './src/components/ButtonSecondaryOutlineBig';
import SearchBar from './src/components/SearchBar';
import { HeadlineText } from './src/components/Text';
import ButtonPrimarySmall from './src/components/ButtonPrimarySmall';
import ButtonSecondaryOutlineSmall from './src/components/ButtonSecondaryOutlineSmall';
import ButtonReview from './src/components/ButtonReview';
import { Container, Content } from 'native-base';
import ButtonSearchBig from './src/components/ButtonSearchBig';
import ButtonCameraBig from './src/components/ButtonCameraBig';
import ButtonAddBagSmall from './src/components/ButtonAddBagSmall';
import ButtonAddFavoriteSmall from './src/components/ButtonAddFavoriteSmall';
import ButtonAdd from './src/components/ButtonAdd';
import ButtonGoogle from './src/components/ButtonGoogle';
import ButtonFacebook from './src/components/ButtonFacebook';
import Dropdown from './src/components/Dropdown';
import ButtonCheckbox from './src/components/ButtonCheckbox';
import ButtonSwitch from './src/components/ButtonSwitch';
import ButtonTagOrdinary from './src/components/ButtonTagOrdinary';
import ButtonTagSmall from './src/components/ButtonTagSmall';
import { LabelHot, LabelNew, LabelSale } from './src/components/Label';
import ListFilter from './src/components/ListFilter';
import PriceFilter from './src/components/PriceFilter';
import ViewButton from './src/components/ViewButton';
import RangeSlider from './src/components/RangeSlider';
import { ColorIconAtive, ColorIconInactive } from './src/svg/ColorIcon';
import { StarIconActive, StarIconInactive } from './src/svg/StarIcon';
import {
HomeIconActive,
HomeIconInactive,
ShopIconActive,
ShopIconInactive,
BagTabIconActive,
BagTabIconInactive,
FavTabIconActive,
FavTabIconInactive,
ProfileTabIconActive,
ProfileTabIconInactive,
BagTabIconInactive2,
} from './src/svg/TabBarIcons';
import { BagIconInactive } from './src/svg/BagIcon';
import RNBottomSheet from './src/components/RNBottomSheet';
import Bagitem from './src/components/BagItem';
import {
QuantityMinusIcon,
QuantityPlusIcon,
} from './src/svg/QuantityPlusMinu';
import CatalogItem from './src/components/CatalogItem';
import OrderItem from './src/components/OrderItem';
import CategoryCard from './src/components/CategoryCard';
import FavoriteItem from './src/components/FavoriteItemRectangle';
import PromoCodeCard from './src/components/PromoCodeCard';
import ProductMainItem from './src/components/ProductMainItem';
import AddressCard from './src/components/AddressCard';
import OrderCard from './src/components/OrderCard';
import PopUpWindow from './src/components/PopUpWindow';
import ReviewPhotoSmall from './src/components/ReviewPhotoSmall';
import VisualSearch from './src/pages/VisualSearch';
import VisualSearchFinding from './src/pages/VisualSearchFinding';
import MainPage from './src/pages/tab/MainPage';
import MainPage2 from './src/pages/tab/MainPage2';
import Categories from './src/pages/tab/Categories';
import Categories2 from './src/pages/Categories2';
import Catalog1 from './src/pages/Catalog1';
import FavoriteItemSquare from './src/components/FavoriteItemSquare';
import Catalog2 from './src/pages/Catalog2';
import Filters from './src/pages/Filters';
import Brand from './src/pages/Brand';
import ProductCard from './src/pages/ProductCard';
import Checkout from './src/pages/Checkout';
import RatingAndReviews from './src/pages/RatingAndReviews';
import RNImagePicker from './src/components/RNImagePicker';
import ExpoImagePicker from './src/components/ExpoImagePicker';
import Favorites from './src/pages/tab/Favorites';
import MyBag from './src/pages/tab/MyBag';
import ShippingAddress from './src/pages/ShippingAddress';
import PaymentCards from './src/pages/PaymentCards';
import AddShippingAddress from './src/pages/AddShippingAddress';
import Success from './src/pages/Success';
import MyProfile from './src/pages/tab/MyProfile';
import MyOrders from './src/pages/MyOrders';
import DemoPage from './src/pages/DemoPage';
import OrderDetails from './src/pages/OrderDetails';
import Settings from './src/pages/Settings';
import SignUp from './src/pages/auth/SignUp';
import SignIn from './src/pages/auth/SignIn';
import ForgotPassword from './src/pages/auth/ForgotPassword';
import { isValid } from 'cc-validate';
import * as Payment from 'payment';
import valid from 'card-validator';
import AppNavigation from './src/navigation';
let result = isValid('5061021053232139619');
let result2 = valid.number('5399412007917292').card.niceType;
export default function App() {
let [fontsLoaded] = useFonts({
'Metropolis-Regular': require('./src/assets/fonts/Metropolis-Regular.otf'),
'Metropolis-Bold': require('./src/assets/fonts/Metropolis-Bold.otf'),
'Metropolis-Black': require('./src/assets/fonts/Metropolis-Black.otf'),
'Metropolis-Medium': require('./src/assets/fonts/Metropolis-Medium.otf'),
'Metropolis-SemiBold': require('./src/assets/fonts/Metropolis-SemiBold.otf'),
});
if (!fontsLoaded) {
return <AppLoading />;
} else {
return <AppNavigation />;
}
}
const styles = StyleSheet.create({
container: {
// flex: 1,
backgroundColor: '#fff',
// alignItems: 'center',
// justifyContent: 'center',
margin: RFValue(10),
},
});