import React, { useState } from 'react'; import { View, Text, ScrollView, Pressable, StyleSheet, SafeAreaView } from 'react-native'; const PLANTS = [ { name: 'Monstera', icon: 'ðŸŒŋ', days: 0, light: 'Bright indirect' }, { name: 'Snake plant', icon: 'ðŸŠī', days: 4, light: 'Low light' }, { name: 'Fiddle fig', icon: 'ðŸŒģ', days: 1, light: 'Bright' }, { name: 'Pothos', icon: '🍃', days: 2, light: 'Medium' }, ]; export default function App() { const [watered, setWatered] = useState>({}); return ( YOUR JUNGLE 4 plants 1 needs water today {PLANTS.map((p) => { const done = watered[p.name] || p.days > 0; return ( {p.icon} {p.name} ☀ïļ {p.light} {done ? (p.days > 0 ? 'In ' + p.days + ' days' : 'Watered') : 'Water today'} {p.days === 0 && ( setWatered((w) => ({ ...w, [p.name]: true }))} style={[s.btn, watered[p.name] && s.btnDone]}> {watered[p.name] ? '✓' : '💧'} )} ); })} ); } const s = StyleSheet.create({ safe: { flex: 1, backgroundColor: '#08120A' }, scroll: { padding: 22, paddingTop: 60 }, kicker: { color: '#5CCB6A', fontSize: 12, fontWeight: '700', letterSpacing: 2 }, h1: { color: '#fff', fontSize: 32, fontWeight: '800', marginTop: 4 }, sub: { color: '#7DA886', fontSize: 15, marginTop: 2, marginBottom: 20 }, card: { flexDirection: 'row', alignItems: 'center', backgroundColor: '#0E1C11', borderRadius: 20, padding: 16, marginBottom: 14 }, thumb: { width: 64, height: 64, borderRadius: 18, backgroundColor: '#122516', alignItems: 'center', justifyContent: 'center' }, name: { color: '#EAF6EC', fontSize: 17, fontWeight: '700' }, light: { color: '#7DA886', fontSize: 13, marginTop: 4 }, due: { fontSize: 13, fontWeight: '700', marginTop: 4 }, btn: { width: 48, height: 48, borderRadius: 24, backgroundColor: '#12331A', alignItems: 'center', justifyContent: 'center', borderWidth: 1, borderColor: '#1E4D29' }, btnDone: { backgroundColor: '#5CCB6A', borderColor: '#5CCB6A' }, btnText: { fontSize: 20, color: '#fff' }, });