Files
MAD-Treasure-Hunt/src/entity/cache/CacheList.js
T
suddenlyoranges 6e25fe6807 added entities
added Cache, Event and Find entities for pressable and scrollable components
2026-04-09 14:52:56 +01:00

29 lines
703 B
JavaScript

import { ScrollView, StyleSheet } from "react-native";
import CacheItem from "./CacheItem";
const CacheList = ({ caches, foundCacheIds, onSelect }) => {
// Initialisations ---------------------
// State -------------------------------
// Handlers ----------------------------
// View --------------------------------
return (
<ScrollView style={styles.container}>
{caches.map((cache) => (
<CacheItem
key={cache.CacheID}
cache={cache}
isFound={foundCacheIds.includes(cache.CacheID)}
onSelect={onSelect}
/>
))}
</ScrollView>
);
};
const styles = StyleSheet.create({
container: {},
});
export default CacheList;