import React, { useState } from 'react'; import { View, Text, Pressable, StyleSheet, SafeAreaView } from 'react-native'; const PAGES = [ { emoji: '🎨', title: 'Design without limits', body: 'A library of beautiful, ready-to-use mobile screens.', c: '#0EA5E9' }, { emoji: '⚡', title: 'Build in minutes', body: 'Copy a design link and hand it straight to your AI builder.', c: '#8B5CF6' }, { emoji: '🚀', title: 'Ship something great', body: 'Free forever. Browse, remix, and launch your idea today.', c: '#22C55E' }, ]; export default function App() { const [page, setPage] = useState(0); const p = PAGES[page]; const last = page === PAGES.length - 1; return ( {p.emoji} {p.title} {p.body} {PAGES.map((_, i) => ())} setPage((x) => (last ? 0 : x + 1))} style={[s.btn, { backgroundColor: p.c }]}> {last ? 'Get started' : 'Continue'} {last ? 'Welcome aboard' : 'Skip'} ); } const s = StyleSheet.create({ safe: { flex: 1 }, center: { flex: 1, alignItems: 'center', justifyContent: 'center', paddingHorizontal: 36 }, badge: { width: 140, height: 140, borderRadius: 40, alignItems: 'center', justifyContent: 'center', marginBottom: 40 }, emoji: { fontSize: 70 }, title: { color: '#fff', fontSize: 30, fontWeight: '800', textAlign: 'center', letterSpacing: -0.5 }, body: { color: '#8A93A6', fontSize: 17, textAlign: 'center', marginTop: 14, lineHeight: 25 }, footer: { paddingHorizontal: 30, paddingBottom: 40 }, dots: { flexDirection: 'row', justifyContent: 'center', gap: 8, marginBottom: 26 }, dot: { width: 8, height: 8, borderRadius: 4, backgroundColor: '#2A2E38' }, btn: { borderRadius: 30, paddingVertical: 18, alignItems: 'center' }, btnText: { color: '#fff', fontSize: 17, fontWeight: '800' }, skip: { color: '#5A5E68', fontSize: 15, textAlign: 'center', marginTop: 18, fontWeight: '600' }, });