import React from 'react'; import { View, Text, ScrollView, StyleSheet, SafeAreaView } from 'react-native'; const STAGES = [ { label: 'Awake', h: 16, c: '#3A3F5C' }, { label: 'REM', h: 46, c: '#6C8BFF' }, { label: 'Light', h: 70, c: '#4A5BA8' }, { label: 'Deep', h: 38, c: '#2E3A78' }, ]; const NIGHTS = [62, 78, 71, 84, 69, 88, 81]; export default function App() { return ( LAST NIGHT You slept well 88 sleep score 🛏️11:24 PM ☀️7:02 AM ⏱️7h 38m Sleep stages {STAGES.map((st) => ( {st.label} ))} This week {NIGHTS.map((n, i) => ( {'SMTWTFS'[i]} ))} ); } const s = StyleSheet.create({ safe: { flex: 1, backgroundColor: '#080A14' }, scroll: { padding: 22, paddingTop: 60 }, kicker: { color: '#6C8BFF', fontSize: 12, fontWeight: '700', letterSpacing: 1.5 }, h1: { color: '#fff', fontSize: 30, fontWeight: '800', marginTop: 4 }, scoreCard: { flexDirection: 'row', alignItems: 'center', backgroundColor: '#0F1322', borderRadius: 22, padding: 22, marginTop: 22 }, scoreRing: { width: 116, height: 116, borderRadius: 58, borderWidth: 8, borderColor: '#6C8BFF', alignItems: 'center', justifyContent: 'center' }, score: { color: '#fff', fontSize: 38, fontWeight: '800' }, scoreLabel: { color: '#7A85B8', fontSize: 11, marginTop: 2 }, scoreMeta: { flex: 1, marginLeft: 24, gap: 12 }, metaRow: { flexDirection: 'row', alignItems: 'center' }, metaIcon: { fontSize: 16, width: 28 }, metaText: { color: '#C9CEE8', fontSize: 16, fontWeight: '600' }, section: { color: '#fff', fontSize: 18, fontWeight: '700', marginTop: 30, marginBottom: 16 }, stages: { flexDirection: 'row', justifyContent: 'space-around', alignItems: 'flex-end', backgroundColor: '#0F1322', borderRadius: 18, padding: 20, height: 170 }, stageCol: { alignItems: 'center', justifyContent: 'flex-end' }, stageBarWrap: { justifyContent: 'flex-end', height: 120 }, stageBar: { width: 40, borderRadius: 10 }, stageLabel: { color: '#7A85B8', fontSize: 12, marginTop: 10 }, week: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'flex-end', height: 130 }, nightCol: { alignItems: 'center', justifyContent: 'flex-end' }, nightBar: { width: 30, borderRadius: 8, backgroundColor: '#4A5BA8' }, nightLabel: { color: '#7A85B8', fontSize: 12, marginTop: 8 }, });