import React from 'react'; import { View, Text, StyleSheet, Dimensions, Image } from 'react-native'; import IconLabel from './IconLabel'; const iconColor = 'white'; const HouseCard = ({ info }) => { const { name, categories, deliveryTime, distance, image } = info; return ( {name} ); }; const deviceWidth = Math.round(Dimensions.get('window').width); const offset = 40; const radius = 20; const styles = StyleSheet.create({ container: { width: deviceWidth - 20, alignItems: 'center', marginTop: 25, }, cardContainer: { width: deviceWidth - offset, backgroundColor: '#1C254E', height: 200, borderRadius: radius, shadowColor: '#000', shadowOffset: { width: 5, height: 5, }, shadowOpacity: 0.75, shadowRadius: 5, elevation: 9, }, imageStyle: { height: 130, width: deviceWidth - offset, borderTopLeftRadius: radius, borderTopRightRadius: radius, opacity: 0.9, alignContent: 'center', alignSelf: 'center', }, titleStyle: { fontSize: 20, fontWeight: '800', color: 'white', }, categoryStyle: { fontWeight: '200', }, infoStyle: { marginHorizontal: 10, marginVertical: 5, }, iconLabelStyle: { flexDirection: 'row', marginTop: 10, }, }); export default HouseCard;