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