Refactor components and enhance background task management

- Updated font sizes and weights in BasalMetabolismCard, MoodCard, HealthDataCard, and NutritionRadarCard for improved readability.
- Removed loading state from MoodCard to simplify the component.
- Adjusted styles in WeightHistoryCard for better layout and spacing.
- Integrated expo-background-fetch for improved background task handling.
- Updated Info.plist to include background fetch capability.
- Enhanced background task registration and execution logic in backgroundTaskManager.
- Added debug function to manually trigger background task execution for testing purposes.
This commit is contained in:
richarjiang
2025-09-03 16:17:29 +08:00
parent 16b4fc8816
commit 8b9689b269
17 changed files with 163 additions and 85 deletions

View File

@@ -61,12 +61,12 @@ const styles = StyleSheet.create({
alignItems: 'flex-end',
},
value: {
fontSize: 20,
fontSize: 16,
fontWeight: '600',
color: '#192126',
},
unit: {
fontSize: 14,
fontSize: 12,
color: '#666',
marginLeft: 4,
marginBottom: 2,