-
Notifications
You must be signed in to change notification settings - Fork 0
/
Popular.js
45 lines (40 loc) · 2.05 KB
/
Popular.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
import { Image, StyleSheet, Text, View } from 'react-native'
import React from 'react'
import FB from '../assets/fb.png'
const data = [
{name: 'Software Developer', company: 'Fabe', location: 'Kasoa, Accra', image: FB, salary: '200/yr'},
{name: 'Software Developer', company: 'Fabe', location: 'Kasoa, Accra', image: FB, salary: '200/yr'},
{name: 'Software Developer', company: 'Fabe', location: 'Kasoa, Accra', image: FB, salary: '200/yr'},
{name: 'Software Developer', company: 'Fabe', location: 'Kasoa, Accra', image: FB, salary: '200/yr'},
{name: 'Software Developer', company: 'Fabe', location: 'Kasoa, Accra', image: FB, salary: '200/yr'},
{name: 'Software Developer', company: 'Fabe', location: 'Kasoa, Accra', image: FB, salary: '200/yr'},
{name: 'Software Developer', company: 'Fabe', location: 'Kasoa, Accra', image: FB, salary: '200/yr'},
{name: 'Software Developer', company: 'Fabe', location: 'Kasoa, Accra', image: FB, salary: '200/yr'},
]
const Popular = () => {
return (
<View style={{display: 'flex', flexDirection: 'column', justifyContent: 'center', gap: 10, marginHorizontal: 20, marginTop: 20}}>
{
data.map((item, index) => {
return(
<View key={index} style={{backgroundColor: 'red', borderRadius: 10, padding: 10, display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center'}}>
<View style={{display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10}}>
<Image source={item.image} />
<View style={{}}>
<Text>{item.name}</Text>
<Text>{item.name}</Text>
</View>
</View>
<View>
<Text>${item.salary}</Text>
<Text>{item.location}</Text>
</View>
</View>
)
})
}
</View>
)
}
export default Popular
const styles = StyleSheet.create({})