import {Image, Pressable, Text, View} from 'react-native'; import {colorToRgba} from '../../helpers/colorToRgba'; import {renderIcon} from '../../helpers/renderIcon'; import {ratingCardStyles} from '../../theme'; import type {FloatingActionCardProps} from '../../types'; export const FloatingActionCard = ({ accessibilityHint, accessibilityLabel, backgroundColor: bgColor, bottom = 40, decimals = 1, description, icon, iconColor = '#FFD700', image, onPress, rating, testID, textColor = '#000000', title, width = '90%', }: FloatingActionCardProps) => { const backgroundColor = colorToRgba(bgColor ?? '#FFFFFF', 0.9); return ( {image && } {title} {description && ( {description} )} {renderIcon(icon, {size: 16, color: iconColor})} {rating !== undefined && ( {Number(rating).toFixed(decimals)} )} ); };