import { View, ScrollView, StyleSheet } from 'react-native'; import { Text, Card } from 'react-native-paper'; import { useLocalSearchParams } from 'expo-router'; import { locations } from '@/data/locations'; export default function Location() { const { id } = useLocalSearchParams(); const location = locations.find(loc => loc.id == id); if (!location) { return ( Brak lokalizaji - {id} ); } return ( {location.name} Opis: {location.description} Statystyki: Powierzchnia: {location.area} km² Ludność: {location.population} osób ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#25292e', justifyContent: 'center', alignItems: 'center', }, text: { color: '#fff', }, });