feat: 更新健康数据功能和用户个人信息页面

- 在 Explore 页面中添加日期选择功能,允许用户查看指定日期的健康数据
- 重构健康数据获取逻辑,支持根据日期获取健康数据
- 在个人信息页面中集成用户资料编辑功能,支持姓名、性别、年龄、体重和身高的输入
- 新增 AnimatedNumber 和 CircularRing 组件,优化数据展示效果
- 更新 package.json 和 package-lock.json,添加 react-native-svg 依赖
- 修改布局以支持新功能的显示和交互
This commit is contained in:
richarjiang
2025-08-12 18:54:15 +08:00
parent 2fac3f899c
commit 8ffebfb297
14 changed files with 1034 additions and 72 deletions

39
types/react-native-svg.d.ts vendored Normal file
View File

@@ -0,0 +1,39 @@
declare module 'react-native-svg' {
import * as React from 'react';
import { ViewProps } from 'react-native';
export interface SvgProps extends ViewProps {
width?: number | string;
height?: number | string;
viewBox?: string;
}
export default function Svg(props: React.PropsWithChildren<SvgProps>): React.ReactElement | null;
export interface CommonProps {
fill?: string;
stroke?: string;
strokeWidth?: number;
strokeLinecap?: 'butt' | 'round' | 'square';
strokeLinejoin?: 'miter' | 'round' | 'bevel';
strokeDasharray?: string | number[];
strokeDashoffset?: number;
}
export interface CircleProps extends CommonProps {
cx?: number;
cy?: number;
r?: number;
originX?: number;
originY?: number;
}
export const Circle: React.ComponentType<CircleProps>;
export interface GProps extends CommonProps {
rotation?: number;
originX?: number;
originY?: number;
}
export const G: React.ComponentType<React.PropsWithChildren<GProps>>;
}