Ambient Sound Mixer and Focus States
A dark meditation app with blue, green and gray glows and floating stars. A state page swipes between nine moods, a mix page toggles sounds and sets volumes in a scrolling list, and a sheet picks a timer. HTML and React Native share one core.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "ambient-sound-mixer-and-focus-states" to this project. The full source is attached at the end of this prompt. Put the files under components/ambient-sound-mixer-and-focus-states/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 16 Nov 2026
- License
- Unlimited commercial projects
- Original design
- RedNote
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A dark ambient-sound app screen with three views. The first is a state page where nine moods, such as focus, heal and meditate, are swiped through horizontally. Each one changes a large diffuse background glow, a spaced-out uppercase title, a city and weather line, and a frequency pill, with nine pager dots below and drifting star points. The second is a mixer with a scrolling grid of twelve sound cards, each with a switch and a volume slider you can drag. Tapping the frequency pill opens a timer panel with duration choices that closes after selection.
How it's built
A shared JavaScript core describes each scene as a display list in points, and the React Native component renders it with react-native-svg, including the glows, stars and glass cards. Swiping, slider dragging and scrolling use PanResponder, and transitions advance on a requestAnimationFrame loop with no Reanimated. Text widths come from a small lookup module and icons from a path table. Glows, stars and glass are generated by code, with no bitmap from the source.
Good for
- A meditation, sleep or focus app with mood-based backgrounds
- A mixer screen where several looping sounds each need an on-off switch and level
- A template for pageable full-screen states that share one layout
Dependencies
react-native-svgreact-native