{"$schema":"https://api.vp0.com/schema/vp0-bundle.v1.json","schemaVersion":"vp0-bundle.v1","id":"vp0.flow-hydrate","title":"Flow — Hydrate","type":"registry:block","version":"1.0.0","author":"@vp0","categories":["Health","Nutrition"],"styleTags":["Minimal"],"category":"Nutrition","registryDependencies":[],"docs":"This is an iOS app UI starter built with React Native. Paste the design link into your AI app builder (Claude Code, Rork, Lovable) and ask it to start from this design. Add your own backend/data logic. These are UI starters.","license":null,"kind":"app_template","createdAt":"2026-05-25T19:40:48.873Z","updatedAt":"2026-05-25T19:40:48.873Z","installHints":{"defaultTarget":"react-native","mcp":"claude mcp add vp0 -- npx -y vp0-mcp","shadcn":"npx shadcn@latest add https://api.vp0.com/r/flow-hydrate.json","cli":"npx vp0com add flow-hydrate --target react-native","openInV0":"https://v0.dev/chat/api/open?url=https://api.vp0.com/r/flow-hydrate.json","downloadExpo":"https://api.vp0.com/export/flow-hydrate/expo.zip"},"sourceHash":"sha256:d0f535ee934e2fd6efd889e8194e994aea69cba21df75425db690df810cf00d2","meta":{"com.vp0.contentId":"b6e58736-1ba2-4494-aa22-963cd15fdc45","com.vp0.platform":"ios","com.vp0.availableLanguages":["react-native"],"com.vp0.defaultLanguage":"react-native","com.vp0.contentType":"template","com.vp0.kind":"app_template","com.vp0.category":"Nutrition","com.vp0.sourceToken":"vp0_d5d348153dadae4449d5e633","com.vp0.sourceHash":"sha256:d0f535ee934e2fd6efd889e8194e994aea69cba21df75425db690df810cf00d2","com.vp0.simulator":{"target":"react-native","entrypoint":"App.tsx","simulatable":true,"buildStatus":null,"embedUrl":null,"provider":null}},"name":"flow-hydrate","slug":"flow-hydrate","sourceToken":"vp0_d5d348153dadae4449d5e633","contentType":"template","platform":"ios","description":"Tap to fill each glass and reach your daily water goal.","createdBy":"vp0","tags":["Health","Nutrition","Minimal"],"availableLanguages":["react-native"],"defaultLanguage":"react-native","targets":[{"name":"react-native","entrypoint":"App.tsx"}],"files":[{"language":"react-native","path":"App.tsx","type":"registry:page","target":"app/App.tsx","rawUrl":"https://api.vp0.com/designs/flow-hydrate/raw?language=react-native&path=App.tsx","content":"import React, { useState } from 'react';\nimport { View, Text, Pressable, StyleSheet, SafeAreaView } from 'react-native';\n\nconst GOAL = 8;\n\nexport default function App() {\n  const [filled, setFilled] = useState(3);\n  const pct = Math.round((filled / GOAL) * 100);\n  const ml = filled * 250;\n  return (\n    <SafeAreaView style={s.safe}>\n      <View style={s.head}>\n        <Text style={s.kicker}>STAY HYDRATED</Text>\n        <Text style={s.h1}>{ml} ml</Text>\n        <Text style={s.sub}>{filled} of {GOAL} glasses · {pct}%</Text>\n      </View>\n\n      <View style={s.barWrap}>\n        <View style={s.barTrack}>\n          <View style={[s.barFill, { height: pct + '%' }]} />\n        </View>\n      </View>\n\n      <View style={s.glasses}>\n        {Array.from({ length: GOAL }).map((_, i) => {\n          const on = i < filled;\n          return (\n            <Pressable key={i} onPress={() => setFilled(i + 1 === filled ? i : i + 1)} style={[s.glass, on && s.glassOn]}>\n              <Text style={s.glassIcon}>{on ? '💧' : '🥛'}</Text>\n            </Pressable>\n          );\n        })}\n      </View>\n\n      <Pressable onPress={() => setFilled((f) => Math.min(GOAL, f + 1))} style={({ pressed }) => [s.btn, pressed && { opacity: 0.85 }]}>\n        <Text style={s.btnText}>+ Add a glass</Text>\n      </Pressable>\n    </SafeAreaView>\n  );\n}\n\nconst s = StyleSheet.create({\n  safe: { flex: 1, backgroundColor: '#04121C' },\n  head: { paddingTop: 64, alignItems: 'center' },\n  kicker: { color: '#33B1FF', fontSize: 12, fontWeight: '700', letterSpacing: 2 },\n  h1: { color: '#fff', fontSize: 52, fontWeight: '800', marginTop: 8 },\n  sub: { color: '#5E8AB0', fontSize: 15, marginTop: 4 },\n  barWrap: { flex: 1, alignItems: 'center', justifyContent: 'center' },\n  barTrack: { width: 86, height: 240, borderRadius: 43, backgroundColor: '#0B2333', justifyContent: 'flex-end', overflow: 'hidden', borderWidth: 1, borderColor: '#143246' },\n  barFill: { width: '100%', backgroundColor: '#33B1FF', borderRadius: 43 },\n  glasses: { flexDirection: 'row', flexWrap: 'wrap', justifyContent: 'center', gap: 12, paddingHorizontal: 30 },\n  glass: { width: 52, height: 52, borderRadius: 14, backgroundColor: '#0B2333', alignItems: 'center', justifyContent: 'center', borderWidth: 1, borderColor: '#143246' },\n  glassOn: { backgroundColor: '#0E3349', borderColor: '#33B1FF' },\n  glassIcon: { fontSize: 22 },\n  btn: { backgroundColor: '#33B1FF', margin: 26, borderRadius: 30, paddingVertical: 18, alignItems: 'center' },\n  btnText: { color: '#04121C', fontSize: 17, fontWeight: '800' },\n});\n"}],"assets":[{"kind":"cover","url":"https://storage.vp0.com/vp0/covers/b6e58736-1ba2-4494-aa22-963cd15fdc45/d0552364-9aa3-4962-90cb-274c60e39098/full.webp","width":1206,"height":2622,"lqip":"CNcFEwQYcNiIhH1kt490+0g=","variants":{"avif":"https://storage.vp0.com/vp0/covers/b6e58736-1ba2-4494-aa22-963cd15fdc45/d0552364-9aa3-4962-90cb-274c60e39098/avif.avif","card":"https://storage.vp0.com/vp0/covers/b6e58736-1ba2-4494-aa22-963cd15fdc45/d0552364-9aa3-4962-90cb-274c60e39098/card.webp","full":"https://storage.vp0.com/vp0/covers/b6e58736-1ba2-4494-aa22-963cd15fdc45/d0552364-9aa3-4962-90cb-274c60e39098/full.webp","thumb":"https://storage.vp0.com/vp0/covers/b6e58736-1ba2-4494-aa22-963cd15fdc45/d0552364-9aa3-4962-90cb-274c60e39098/thumb.webp","light_avif":"https://storage.vp0.com/vp0/covers/b6e58736-1ba2-4494-aa22-963cd15fdc45/49372792-bec9-4246-961a-74fb5bb8bb74/avif.avif","light_card":"https://storage.vp0.com/vp0/covers/b6e58736-1ba2-4494-aa22-963cd15fdc45/49372792-bec9-4246-961a-74fb5bb8bb74/card.webp","light_full":"https://storage.vp0.com/vp0/covers/b6e58736-1ba2-4494-aa22-963cd15fdc45/49372792-bec9-4246-961a-74fb5bb8bb74/full.webp","light_thumb":"https://storage.vp0.com/vp0/covers/b6e58736-1ba2-4494-aa22-963cd15fdc45/49372792-bec9-4246-961a-74fb5bb8bb74/thumb.webp"}},{"kind":"video","url":"https://storage.vp0.com/vp0/clips/6/ccc9df68-eafb-40af-832a-2eada0ca6e0a/clip.mp4","variants":{"mp4":"https://storage.vp0.com/vp0/clips/6/ccc9df68-eafb-40af-832a-2eada0ca6e0a/clip.mp4","webm":"https://storage.vp0.com/vp0/clips/6/ccc9df68-eafb-40af-832a-2eada0ca6e0a/clip.webm","poster":"https://storage.vp0.com/vp0/clips/6/ccc9df68-eafb-40af-832a-2eada0ca6e0a/poster.jpg"}}],"screens":[],"dependencies":{},"devDependencies":{},"componentsUsed":[],"notes":"This is an iOS app UI starter built with React Native. Paste the design link into your AI app builder (Claude Code, Rork, Lovable) and ask it to start from this design. Add your own backend/data logic. These are UI starters.","importUrl":"https://vp0.com/source/flow-hydrate","manifestUrl":"https://api.vp0.com/designs/flow-hydrate/manifest","installCommand":null,"aiInstructions":"This is an iOS app UI starter for Expo React Native (\"Flow — Hydrate\").\nIntegrate it into the user's Expo project as follows:\n1. No extra dependencies are required.\n2. Create the following file(s) and paste each provided \"content\" exactly:\n   - App.tsx\n3. Render the exported component from a screen (e.g. app/(tabs)/index.tsx). It targets iOS — keep SafeAreaView / safe-area insets and the existing styling.\n4. These are UI starters: reproduce the visual layout faithfully, then wire the user's own data/navigation/backend afterward.","promptText":"Build this iOS app design in my project: \"Flow — Hydrate\" — Tap to fill each glass and reach your daily water goal..\n1. Fetch https://api.vp0.com/designs/flow-hydrate/manifest — a JSON manifest whose files[] array contains EVERY source file inline (path + content).\n2. Create each file at its exact files[].path and paste its content VERBATIM. Do not re-imagine or restyle the UI — the provided code IS the design.\n3. Install dependencies exactly as given by the manifest's installCommand field (skip if null).\n4. Render the entry component (targets[].entrypoint) from a screen. Keep SafeAreaView / safe-area insets and the existing styling untouched.\n5. It is a UI starter: once it renders pixel-perfect, wire my own data, navigation and backend on top.\nHuman-readable source page: https://vp0.com/source/flow-hydrate"}