feat: horizontal ellipsis in post detail

This commit is contained in:
Tantikon Phasanphaengsi 2025-05-13 00:23:24 +07:00
parent ae53b78ba6
commit 7b491cb688
4 changed files with 361 additions and 413 deletions

File diff suppressed because it is too large Load Diff

10
package-lock.json generated
View File

@ -46,6 +46,7 @@
"react-native": "0.79.2", "react-native": "0.79.2",
"react-native-gesture-handler": "~2.24.0", "react-native-gesture-handler": "~2.24.0",
"react-native-reanimated": "^3.16.2", "react-native-reanimated": "^3.16.2",
"react-native-responsive-screen": "^1.4.2",
"react-native-safe-area-context": "^5.4.0", "react-native-safe-area-context": "^5.4.0",
"react-native-screens": "~4.10.0", "react-native-screens": "~4.10.0",
"react-native-uuid": "^2.0.3", "react-native-uuid": "^2.0.3",
@ -11072,6 +11073,15 @@
"react-native": "*" "react-native": "*"
} }
}, },
"node_modules/react-native-responsive-screen": {
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/react-native-responsive-screen/-/react-native-responsive-screen-1.4.2.tgz",
"integrity": "sha512-BLYz0UUpeohrib7jbz6wDmtBD5OmiuMRko4IT8kIF63taXPod/c5iZgmWnr5qOnK8hMuKiGMvsM3sC+eHX/lEQ==",
"license": "MIT",
"peerDependencies": {
"react-native": ">=0.35"
}
},
"node_modules/react-native-safe-area-context": { "node_modules/react-native-safe-area-context": {
"version": "5.4.0", "version": "5.4.0",
"resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-5.4.0.tgz", "resolved": "https://registry.npmjs.org/react-native-safe-area-context/-/react-native-safe-area-context-5.4.0.tgz",

View File

@ -49,6 +49,7 @@
"react-native": "0.79.2", "react-native": "0.79.2",
"react-native-gesture-handler": "~2.24.0", "react-native-gesture-handler": "~2.24.0",
"react-native-reanimated": "^3.16.2", "react-native-reanimated": "^3.16.2",
"react-native-responsive-screen": "^1.4.2",
"react-native-safe-area-context": "^5.4.0", "react-native-safe-area-context": "^5.4.0",
"react-native-screens": "~4.10.0", "react-native-screens": "~4.10.0",
"react-native-uuid": "^2.0.3", "react-native-uuid": "^2.0.3",

View File

@ -227,3 +227,11 @@ export const insertGenAIResult = async (
return { data: foodId, error: null }; return { data: foodId, error: null };
}; };
export async function updateFoodSharing(foodId: string, isShared: boolean) {
return await supabase.from("foods").update({ is_shared: isShared }).eq("id", foodId)
}
export async function deleteFood(foodId: string) {
return await supabase.from("foods").delete().eq("id", foodId)
}