Skip to content
Snippets Groups Projects
Commit 7239d8dd authored by neyney2810's avatar neyney2810
Browse files

upgrade version

parent f72d4de8
Branches
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -3,7 +3,7 @@ import { View, TouchableOpacity, Text, TextInput, FlatList, ImageBackground, Key
import { useNavigation } from "@react-navigation/native";
import { FontAwesome } from "@expo/vector-icons";
import colors from "../../colors";
import { collection, query, onSnapshot, orderBy, where } from "firebase/firestore";
import { collection, query, onSnapshot, orderBy, where, and } from "firebase/firestore";
import { Entypo } from "@expo/vector-icons";
import { CardItem } from "../../components";
import { Icon } from '../../components'
......@@ -41,7 +41,7 @@ const CatownerHome = () => {
useLayoutEffect(() => {
const collectionRef = collection(database, "profiles");
const q = query(collectionRef, where("role", "==", "cat-sitter", orderBy("updatedAt", "desc")));
const q = query(collectionRef, and(where("role", "==", "cat-sitter"), where("isOpen", "==", true)), orderBy("updatedAt", "desc"));
const unsubscribe = onSnapshot(q, (querySnapshot) => {
setCatsitters(
......@@ -63,7 +63,7 @@ const CatownerHome = () => {
<Text style={styles.heading2}>Your Location: </Text>
<TouchableOpacity style={styles.currentCity}>
<Icon name="navigate-outline" size={20} color={WHITE} />
<Text style={styles.textButton}>New York, USA</Text>
<Text style={styles.textButton}>Reutlingen</Text>
</TouchableOpacity>
</View>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment