import { FlatList, StyleSheet, Text, View } from 'react-native'; const employees = [ {id: 1, name: 'Erős István', city: 'Szeged'}, {id: 2, name: 'Táncos Ernő', city: 'Szeged'}, {id: 3, name: 'Szabó Tamásaaa', city: 'Szeged'} ]; export default function App() { return ( Dolgozók ( {item.name} {item.city} )} /> ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#299dc5', alignItems: 'center', justifyContent: 'center', }, item: { flexDirection: 'row', width: '100%', paddingTop: 1, }, title: { marginTop: 24, fontSize: 34, }, flat: { width: '100%', }, subItem: { fontSize: 16, flex: 1, color: '#333', padding: 5, }, evenRow: { backgroundColor: '#2395c0' }, oddRow: { backgroundColor: '#2591c4' }, });