import { View, StyleSheet, FlatList } from 'react-native'; import { useTheme, Card, Text, Button} from 'react-native-paper'; import { Link } from 'expo-router'; import { locations } from '@/data/locations'; export default function Index() { const theme = useTheme(); locations.sort((a, b) => b.id - a.id); return ( item.name} renderItem={({ item }) => ( {item.name} {item.description.split('.')[0]}... )}> ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#25292e', justifyContent: 'center', alignItems: 'center', }, text: { color: '#fff', }, });