-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasicStyleComponents.js
More file actions
51 lines (49 loc) · 1.47 KB
/
basicStyleComponents.js
File metadata and controls
51 lines (49 loc) · 1.47 KB
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
import {View, Text, StyleSheet, Button, Image} from 'react-native';
import React from 'react';
import DogImage from './dog.jpeg';
export default function BasicStyleComponents() {
return (
<View style={{backgroundColor: '#eee', flex: 1}}>
<Text>Ecommerce App - Flipkart</Text>
{/* <Image source={DogImage}/> */}
<View
style={{
flexDirection: 'row',
flexWrap: 'wrap',
flex: 1,
padding: 20,
justifyContent: 'center',
}}>
<View style={pagestyle.productItem}>
<Image
style={{backgroundColor: '#999', width: "100%", height: 200}}
// blurRadius={10}
source={{
uri: 'https://images.unsplash.com/photo-1507146426996-ef05306b995a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8cHVwcHklMjBkb2d8ZW58MHx8MHx8&w=1000&q=80',
}}
resizeMode="cover"
/>
<Text>iPhone 12</Text>
</View>
<View style={pagestyle.productItem}>
<Text>Window Laptop</Text>
</View>
<View style={pagestyle.productItem}>
<Text>iMac</Text>
</View>
</View>
<View style={{backgroundColor: '#999', padding: 20}}>
<Button title="i am a sticky button"></Button>
</View>
</View>
);
}
const pagestyle = StyleSheet.create({
productItem: {
alignItems: 'center',
justifyContent: 'center',
margin: 10,
backgroundColor: 'pink',
flex: 1,
},
});