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