import { View, StyleSheet, FlatList, ActivityIndicator, RefreshControl, } from "react-native"; import { useTheme, Card, Text, Button } from "react-native-paper"; import { Link } from "expo-router"; import { useState, useEffect } from "react"; import useLocationStore from "@/locationStore"; export default function Index() { const theme = useTheme(); const { locations } = useLocationStore(); 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", }, });