import React, { useContext } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Linking } from 'react-native'; import { QRCodeContext } from '../types'; const SettingsScreen: React.FC = () => { const qrCodeContext = useContext(QRCodeContext); const setQrCodes = qrCodeContext ? qrCodeContext.setQrCodes : () => {}; const clearHistory = () => { setQrCodes([]); }; const handleLinkPress = (url: string) => { Linking.openURL(url); }; return ( Settings Profile Log In About Us handleLinkPress('https://safeqr.github.io/marketing/')}> safeqr.github.io/marketing handleLinkPress('https://safeqr.github.io/privacy-policy')}> Privacy Policy handleLinkPress('https://safeqr.github.io/terms-of-service')}> Terms Of Service Version 1.2 ); }; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#f8f0fc', padding: 20, }, header: { fontSize: 24, fontWeight: 'bold', color: '#ff69b4', marginBottom: 20, }, profileSection: { marginBottom: 20, }, sectionTitle: { fontSize: 18, fontWeight: 'bold', color: '#000', marginBottom: 10, }, loginButton: { backgroundColor: '#ff69b4', paddingVertical: 8, paddingHorizontal: 20, borderRadius: 20, alignItems: 'center', justifyContent: 'center', alignSelf: 'flex-start', }, loginButtonText: { color: '#000', fontSize: 16, }, divider: { height: 1, backgroundColor: '#ccc', marginVertical: 20, }, aboutUsSection: { marginBottom: 20, }, linkText: { fontSize: 16, color: '#0000ff', marginBottom: 10, }, versionText: { textAlign: 'center', fontSize: 14, color: '#aaa', marginTop: 20, }, }); export default SettingsScreen;