import React, { useContext } from 'react'; import { View, Text, StyleSheet, FlatList } from 'react-native'; import { QRCodeContext } from '../types'; const HistoryScreen: React.FC = () => { const { qrCodes } = useContext(QRCodeContext); return ( History Screen ( {item} )} keyExtractor={(item, index) => index.toString()} /> ); }; const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#f8f0fc', padding: 20, }, welcomeText: { textAlign: 'center', fontSize: 20, marginVertical: 10, color: 'black', }, dataBox: { marginVertical: 10, padding: 10, backgroundColor: '#fff', borderRadius: 5, alignItems: 'center', justifyContent: 'center', }, dataText: { fontSize: 16, color: '#000', }, }); export default HistoryScreen;