-
Notifications
You must be signed in to change notification settings - Fork 0
/
AllEntries.js
30 lines (29 loc) · 1.05 KB
/
AllEntries.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View, Button, ScrollView } from "react-native";
import EditEntry from "./EditEntry";
import PressableButton from "./components/PressableButton";
import { firestore } from "./Firebase/firebase-setup";
import { deleteFromDB, writeToDB } from "./Firebase/firestoreHelper";
import EntriesList from "./components/EntriesList";
import { styles } from "./components/Styles";
export default function AllEntries({ navigation, entries }) {
return (
<View style={styles.container}>
<StatusBar style="auto" />
<EntriesList entries={entries} navigation={navigation} />
{/* <EntriesList type="all" /> */}
{/* <ScrollView
// alwaysBounceVertical={false}
contentContainerStyle={styles.contentContainerStyle}
>
{data.map((data) => {
return (
<View key={data.id} style={styles.textContainer}>
<Text style={styles.text}>{data.text}</Text>
</View>
);
})}
</ScrollView> */}
</View>
);
}