feat: 更新依赖项并优化组件结构
- 在 package.json 和 package-lock.json 中新增 @sentry/react-native、react-native-device-info 和 react-native-purchases 依赖 - 更新统计页面,替换 CircularRing 组件为 FitnessRingsCard,增强健身数据展示 - 在布局文件中引入 ToastProvider,优化用户通知体验 - 新增 SuccessToast 组件,提供全局成功提示功能 - 更新健康数据获取逻辑,支持健身圆环数据的提取 - 优化多个组件的样式和交互,提升用户体验
This commit is contained in:
@@ -128,9 +128,6 @@ export function BMICard({ weight, height, style, compact = false }: BMICardProps
|
||||
>
|
||||
<View style={styles.cardHeader}>
|
||||
<View style={styles.titleRow}>
|
||||
<View style={styles.iconSquare}>
|
||||
<Ionicons name="fitness-outline" size={16} color="#192126" />
|
||||
</View>
|
||||
<Text style={[styles.cardTitle, compact && styles.compactTitle]}>BMI</Text>
|
||||
</View>
|
||||
{!compact && (
|
||||
@@ -219,7 +216,7 @@ export function BMICard({ weight, height, style, compact = false }: BMICardProps
|
||||
|
||||
{/* BMI 分类标准 */}
|
||||
<Text style={styles.newSectionTitle}>BMI 分类标准</Text>
|
||||
|
||||
|
||||
<View style={styles.newStatsCard}>
|
||||
{BMI_CATEGORIES.map((category, index) => {
|
||||
const colors = [
|
||||
@@ -320,7 +317,7 @@ const styles = StyleSheet.create({
|
||||
marginRight: 10,
|
||||
},
|
||||
cardTitle: {
|
||||
fontSize: 18,
|
||||
fontSize: 14,
|
||||
fontWeight: '800',
|
||||
color: '#192126',
|
||||
},
|
||||
@@ -380,7 +377,7 @@ const styles = StyleSheet.create({
|
||||
marginBottom: 8,
|
||||
},
|
||||
bmiValue: {
|
||||
fontSize: 32,
|
||||
fontSize: 20,
|
||||
fontWeight: '800',
|
||||
marginRight: 12,
|
||||
},
|
||||
@@ -390,16 +387,16 @@ const styles = StyleSheet.create({
|
||||
borderRadius: 12,
|
||||
},
|
||||
categoryText: {
|
||||
fontSize: 14,
|
||||
fontSize: 12,
|
||||
fontWeight: '700',
|
||||
},
|
||||
bmiDescription: {
|
||||
fontSize: 14,
|
||||
fontSize: 12,
|
||||
fontWeight: '600',
|
||||
marginBottom: 8,
|
||||
},
|
||||
encouragementText: {
|
||||
fontSize: 13,
|
||||
fontSize: 10,
|
||||
color: '#6B7280',
|
||||
fontWeight: '500',
|
||||
lineHeight: 18,
|
||||
|
||||
Reference in New Issue
Block a user