Sleep tracker Pro

A last-night sleep summary on a navy night palette: the score ring sweeps to 86 while the number counts up, a hypnogram of Awake, REM, Light and Deep stages wipes in from bedtime to wake-up, and dragging across it moves a cursor that reads out the stage and clock time. Stage bars grow to their share of the night, tapping a day in the 7-day chart rolls every number over to that night, and a sliding Day, Week and Month control swaps in averages and a 30-day chart.

sleephealthhypnogramscore ringchartwellnesswearableanimationreanimated
Get Pro to copy

A Pro screen: copy it with Pro, $6 a month billed yearly. Already on Pro? Sign in

Paste into Claude Code Cursor Codex Lovable RapidNative
Open full screen

A gluestack Pro pattern

  • The full prompt for your coding agent
  • The source: 1026 lines of plain React Native
  • The packages to install and the setup it needs
  • How to adapt it to your data and routes
Unlimited with Pro, $6/month

Details

File
components/patterns/sleep-tracker.tsx
Lines
1026
Stack
React Native, StyleSheet
Packages
expo-linear-gradient, lucide-react-native, react-native-reanimated, react-native-safe-area-context, react-native-svg, react-native-worklets
Platforms
iOS, Android, Web

Using gluestack-ui?

Optional. The screen is plain React Native; these components can stand in for its primitives.

components/patterns/sleep-tracker.tsx

Source available with Pro

More screens like this.

All Health & Fitness