-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.js
58 lines (54 loc) · 1.63 KB
/
Main.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
import React from 'react';
import {View, ScrollView} from 'react-native';
import {
Avatar,
Button,
Text,
Header,
HeaderBack,
TextHr,
Space,
Categories,
MenuCard,
FoodBanner,
FoodCard,
FoodCardDetails,
NotificationCard,
Input,
OrderCart,
Divider,
} from './src/components';
import {Formik} from 'formik';
import * as Yup from 'yup';
import faker from 'faker';
import {icons, data} from './src/constants';
const Main = () => {
const _onPress = () => console.log('click');
return (
<ScrollView>
<Space size={15} />
<Text title="Food Card Details" h30 center height={40} bold primary />
<FoodCardDetails
foodImg="https://images.unsplash.com/photo-1512621776951-a57141f2eefd?ixlib=rb-1.2.1&w=1000&q=80"
foodPrice="79"
foodDesc="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled."
/>
<Space size={15} />
<Text title="Notification Card" h30 center height={40} bold primary />
<Space size={15} />
<NotificationCard imgUrl={data.foodImg} messageText={data.foodDesc} />
<Text title="Header" h30 center height={40} bold primary />
<Space size={15} />
<Header title="Main" />
</ScrollView>
);
};
export default Main;
/*
<OrderCart
foodImg="https://images.unsplash.com/photo-1512621776951-a57141f2eefd?ixlib=rb-1.2.1&w=1000&q=80"
foodName="Butter Chicken"
foodDesc="Fresh fruits and vegetables"
foodPrice="99"
likesCount="314"
/>*/