Side project · Full-stack React Native Sleep App
FullStack React Native Sleep App
A full-stack sleep app in React Native and Firebase: a dream journal with sleep ratings, a mixer for layering ambient sounds, a sound library, and a guided breathing exercise.
- When:
- Sep 2022 – Mar 2023
- Role:
- Solo — design and engineering
- Stack:
- React Native, Expo, TypeScript, Redux Toolkit, React Navigation, Firebase Auth, Firestore, Expo AV, React Native Track Player
Overview
Shleepy helps people wind down and fall asleep. After signing in, you can log how you slept, build your own mix of ambient sounds, pick a track from the sound library, or follow a breathing exercise.
Design first
Before writing code I designed the app end to end: user personas, sketches, user flows and wireframes, logo explorations, a style guide (ITC Avant Garde Gothic Pro, a night-sky palette of deep navy, purple, and teal, with yellow for highlights), reusable components like the sound bar, toggles, and tab bar, a set of illustrated avatars, high-fidelity mockups of every main screen, a loading animation, and a marketing website.
The mockups go further than the app I built: they also plan a sleep summary and history, an alarm with a wake-up prompt to rate your sleep, and guided meditation courses.
Features
- Accounts: sign up and sign in with Firebase Authentication. Journal entries are tied to the signed-in user.
- Dream journal: write about last night's sleep and rate it with stars. Entries are saved to Firestore, listed newest first, and can be deleted.
- Mixer: five ambient tracks you can play together, each with its own volume slider, to build your own soundscape.
- Sound library: browse and play curated sleep sounds, with the current track and playback state kept in Redux Toolkit.
- Breathing exercise: an animated circle grows and shrinks on a set rhythm, so you can match your breathing to it.
How it's built
The app is built with Expo, React Native, and TypeScript. React Navigation drives the bottom tabs, with a stack for each area: auth, journal, playlists, and meditation.
Audio uses two libraries. Expo AV plays the mixer's layered tracks, and React Native Track Player handles playback from the library. The sound files live in Firebase rather than in the app bundle, which keeps the install small; the track list is fetched from Firebase when the app starts.
