import React, {useState} from 'react' import { View, ScrollView, StyleSheet, Pressable, Image, } from 'react-native' import * as Clipboard from 'expo-clipboard' import * as WebBrowser from 'expo-web-browser' import {Trans} from '@lingui/macro' import * as Layout from '#/components/Layout' import {Text} from '#/components/Typography' import {useSetTitle} from '#/lib/hooks/useSetTitle' import {atoms as a, useTheme} from '#/alf' const APP_VERSION = '1.111.0' const APP_NAME = 'Aiat' const BITCOIN_ADDRESS = '3BqHXxraZyBapyNpJmniJDh9zqzuB8aoRr' export function AppInfoScreen() { useSetTitle('App Info') const t = useTheme() const [copied, setCopied] = useState(false) const copyToClipboard = async (text: string) => { try { await Clipboard.setStringAsync(text) setCopied(true) setTimeout(() => setCopied(false), 2000) } catch (e) { console.log('Clipboard not available') } } const openUrl = (url: string) => { WebBrowser.openBrowserAsync(url) } return ( App Info {/* App Header */} {APP_NAME} v{APP_VERSION} {/* Description Section */} {APP_NAME} is a social networking application based on AT Protocol. Connect with your community on syu.is. {/* App Information Section */} App Information Version {APP_VERSION} Category Social Supported OS iOS 26.0+ Price Free {/* Developer Section */} Developer syui openUrl('https://github.com/syui')} style={[styles.linkRow, t.atoms.border_contrast_low]}> GitHub github.com/syui openUrl('https://syu.is/syui')} style={[styles.linkRow, t.atoms.border_contrast_low]}> ATProto syu.is/syui {/* Bitcoin Section */} Bitcoin copyToClipboard(BITCOIN_ADDRESS)} style={styles.bitcoinRow}> {BITCOIN_ADDRESS} {copied ? 'copied!' : 'copy'} {/* Copyright */} © syui ) } const styles = StyleSheet.create({ appHeader: { alignItems: 'center', marginBottom: 24, }, appIconContainer: { width: 80, height: 80, borderRadius: 18, overflow: 'hidden', marginBottom: 12, }, appIcon: { width: '100%', height: '100%', }, appName: { fontSize: 24, fontWeight: 'bold', marginBottom: 4, }, appVersion: { fontSize: 14, }, section: { marginBottom: 16, borderRadius: 16, padding: 16, }, sectionTitle: { fontSize: 13, fontWeight: '600', textTransform: 'uppercase', letterSpacing: 0.5, marginBottom: 12, }, description: { fontSize: 15, lineHeight: 22, }, infoGrid: { flexDirection: 'row', flexWrap: 'wrap', gap: 8, }, infoItem: { flex: 1, minWidth: '45%', alignItems: 'center', borderRadius: 12, padding: 12, }, infoLabel: { fontSize: 11, textTransform: 'uppercase', letterSpacing: 0.5, marginBottom: 4, }, infoValue: { fontSize: 16, fontWeight: '600', textAlign: 'center', }, developerCard: { marginBottom: 12, }, developerName: { fontSize: 18, fontWeight: '600', }, linkRow: { flexDirection: 'row', alignItems: 'center', paddingVertical: 12, borderTopWidth: 1, }, linkIcon: { fontSize: 14, fontWeight: '600', width: 70, }, linkValue: { flex: 1, fontSize: 14, }, linkArrow: { fontSize: 16, }, bitcoinRow: { flexDirection: 'row', alignItems: 'center', backgroundColor: 'rgba(247, 147, 26, 0.08)', borderRadius: 12, padding: 14, gap: 10, }, bitcoinLabel: { fontSize: 18, fontWeight: '600', color: '#f7931a', }, bitcoinAddress: { flex: 1, fontSize: 11, fontFamily: 'monospace', }, copyHint: { fontSize: 12, color: '#999999', minWidth: 50, textAlign: 'right', }, copiedHint: { color: '#4CAF50', fontWeight: '600', }, copyright: { alignItems: 'center', marginTop: 20, marginBottom: 20, }, copyrightText: { fontSize: 12, }, })