PopularJobCard.js

 avatar
unknown
javascript
2 years ago
678 B
2
Indexable
import { View, Text, TouchableOpacity, Image } from "react-native";

import styles from "./popularjobcard.style";

const PopularJobCard = ({item, selectedJob, handleCardPress}) => {
  return (
    <TouchableOpacity
      style={styles.container(selectedJob, item)}
      onPress={() => handleCardPress(item)}
    >
      <TouchableOpacity style ={styles.logoContainer(selectedJob,item)}>
        <Image
          source={{uri: item.employer_logo}}
          resizeMode="contain"
          style={styles.logoImage}
        />
      </TouchableOpacity>
      <Text>{item.employer_name}</Text>
    </TouchableOpacity>
  );
};

export default PopularJobCard;
Editor is loading...