import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Animated, { FadeIn, FadeOut } from 'react-native-reanimated'; interface HealthDataCardProps { title: string; value: string; unit: string; icon: React.ReactNode; style?: object; } const HealthDataCard: React.FC = ({ title, value, unit, icon, style }) => { return ( {title} {value} {unit} ); }; const styles = StyleSheet.create({ card: { borderRadius: 16, shadowColor: '#000', paddingHorizontal: 16, shadowOffset: { width: 0, height: 2, }, shadowOpacity: 0.1, shadowRadius: 3.84, elevation: 5, marginVertical: 8, flexDirection: 'row', alignItems: 'center', }, iconContainer: { marginRight: 16, }, content: { flex: 1, }, title: { fontSize: 14, color: '#666', marginBottom: 4, }, valueContainer: { flexDirection: 'row', alignItems: 'flex-end', }, value: { fontSize: 24, fontWeight: 'bold', color: '#333', }, unit: { fontSize: 14, color: '#666', marginLeft: 4, marginBottom: 2, }, }); export default HealthDataCard;