import React from 'react'; import { View, StyleSheet } from 'react-native'; import { CardImageProps } from './types'; import { Image, ImageStyle} from 'expo-image'; const CardImage: React.FC = ({ source, style, height = 200, width = '100%', resizeMode = 'cover', borderRadius, overlay, }) => ( {overlay && ( {overlay} )} ); const styles = StyleSheet.create({ container: { position: 'relative', }, image: { width: '100%', height: 200, }, overlay: { ...StyleSheet.absoluteFill, justifyContent: 'center', alignItems: 'center', }, }); export default CardImage;