mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-08 03:00:20 +00:00
added entities
added Cache, Event and Find entities for pressable and scrollable components
This commit is contained in:
1 parent
4d5eac38b7
commit
6e25fe6807
6 files changed
+328
No files matched your search
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
Reference in new issue
Block a user