summaryrefslogtreecommitdiff
path: root/app/(tabs)/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/(tabs)/index.tsx')
-rw-r--r--app/(tabs)/index.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx
index 94e85d6..3303b28 100644
--- a/app/(tabs)/index.tsx
+++ b/app/(tabs)/index.tsx
@@ -95,6 +95,7 @@ export default function HomeScreen() {
}
try {
+ console.log(`${process.env.EXPO_PUBLIC_API_URL}/graphql`)
const response = await fetch(`${process.env.EXPO_PUBLIC_API_URL}/graphql`, {
method: 'POST',
headers: {
@@ -170,7 +171,6 @@ export default function HomeScreen() {
const handleLogout = async () => {
await removeToken();
- setToken('');
};
const removeToken = async () => {
@@ -181,6 +181,8 @@ export default function HomeScreen() {
await AsyncStorage.removeItem('token');
await AsyncStorage.removeItem('userId');
}
+ setToken('');
+ setUserId('');
};
const fetchMapData = async () => {
@@ -241,7 +243,7 @@ export default function HomeScreen() {
}, [region]);
return (
- <ParallaxScrollView>
+ <ParallaxScrollView token={token} userId={userId}>
{token && userId ? (
<>
<ThemedView>