summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-11-28 02:53:07 +0100
committerSanto Cariotti <santo@dcariotti.me>2024-11-28 02:53:07 +0100
commit2a6848c679df7b3b39c275c0041fc5f8e02334f1 (patch)
treeb70c6789bb86c5ff5d485b7cb8c59dd22166df42 /app
parentf5d17ffcb6d09e8f3498ad50952b688f3729901e (diff)
Bump Expo SDK 52
Diffstat (limited to 'app')
-rw-r--r--app/(tabs)/alerts/[id].tsx3
-rw-r--r--app/(tabs)/alerts/index.tsx3
-rw-r--r--app/(tabs)/index.tsx4
-rw-r--r--app/(tabs)/notifications/[id].tsx3
-rw-r--r--app/(tabs)/notifications/index.tsx3
5 files changed, 6 insertions, 10 deletions
diff --git a/app/(tabs)/alerts/[id].tsx b/app/(tabs)/alerts/[id].tsx
index 506d282..221f541 100644
--- a/app/(tabs)/alerts/[id].tsx
+++ b/app/(tabs)/alerts/[id].tsx
@@ -8,8 +8,7 @@ import { ThemedText } from '@/components/ThemedText';
import { ThemedView } from '@/components/ThemedView';
import React, { useState, useCallback, useEffect, useRef } from 'react';
import AsyncStorage from '@react-native-async-storage/async-storage';
-import { useFocusEffect } from '@react-navigation/native';
-import { Link, router, useLocalSearchParams } from 'expo-router';
+import { Link, router, useLocalSearchParams, useFocusEffect } from 'expo-router';
import MapView, { Polygon, Region } from 'react-native-maps';
import { Ionicons } from '@expo/vector-icons';
import { useColorScheme } from '@/hooks/useColorScheme.web';
diff --git a/app/(tabs)/alerts/index.tsx b/app/(tabs)/alerts/index.tsx
index 214839e..303382b 100644
--- a/app/(tabs)/alerts/index.tsx
+++ b/app/(tabs)/alerts/index.tsx
@@ -11,8 +11,7 @@ import { ThemedText } from '@/components/ThemedText';
import { ThemedView } from '@/components/ThemedView';
import React, { useState, useCallback } from 'react';
import AsyncStorage from '@react-native-async-storage/async-storage';
-import { useFocusEffect } from '@react-navigation/native';
-import { Link, router } from 'expo-router';
+import { Link, router, useFocusEffect } from 'expo-router';
import { Ionicons } from '@expo/vector-icons';
interface AlertData {
diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx
index f4ff0ea..d6b970b 100644
--- a/app/(tabs)/index.tsx
+++ b/app/(tabs)/index.tsx
@@ -348,7 +348,7 @@ export default function HomeScreen() {
}
const response = await fetch(
- `${process.env.EXPO_PUBLIC_API_URL}`,
+ `${process.env.EXPO_PUBLIC_API_URL}/graphql`,
{
method: "POST",
headers: {
@@ -359,7 +359,7 @@ export default function HomeScreen() {
query: `
mutation NewPosition($input: PositionInput!) {
newPosition(input: $input) {
- id userId createdAt latitude longitude movingActivity
+ id
}
}
`,
diff --git a/app/(tabs)/notifications/[id].tsx b/app/(tabs)/notifications/[id].tsx
index 42e743d..ac39708 100644
--- a/app/(tabs)/notifications/[id].tsx
+++ b/app/(tabs)/notifications/[id].tsx
@@ -8,8 +8,7 @@ import { ThemedText } from '@/components/ThemedText';
import { ThemedView } from '@/components/ThemedView';
import React, { useState, useCallback, useEffect, useRef } from 'react';
import AsyncStorage from '@react-native-async-storage/async-storage';
-import { useFocusEffect } from '@react-navigation/native';
-import { Link, router, useLocalSearchParams } from 'expo-router';
+import { Link, router, useLocalSearchParams, useFocusEffect } from 'expo-router';
import MapView, { Marker, Polygon, Region } from 'react-native-maps';
import { Ionicons } from '@expo/vector-icons';
import { useColorScheme } from '@/hooks/useColorScheme.web';
diff --git a/app/(tabs)/notifications/index.tsx b/app/(tabs)/notifications/index.tsx
index 673266f..fc9a904 100644
--- a/app/(tabs)/notifications/index.tsx
+++ b/app/(tabs)/notifications/index.tsx
@@ -11,8 +11,7 @@ import { ThemedText } from '@/components/ThemedText';
import { ThemedView } from '@/components/ThemedView';
import React, { useState, useCallback } from 'react';
import AsyncStorage from '@react-native-async-storage/async-storage';
-import { useFocusEffect } from '@react-navigation/native';
-import { Link, router } from 'expo-router';
+import { Link, router, useFocusEffect } from 'expo-router';
import { Ionicons } from '@expo/vector-icons';
interface NotificationData {