From 26bb6a00d22ff94da6b383bfe780e07735cf8144 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 14 Oct 2026 14:49:37 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=95=B1=20=EC=9C=84=EC=B9=98=EB=A1=9C?= =?UTF-8?q?=20=EC=A7=80=EC=97=AD=20=EC=B0=BE=EA=B8=B0(expo-location),=20?= =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=C2=B7=EC=A3=BC=EB=A7=90=20=EC=9D=BC?= =?UTF-8?q?=EC=A0=95=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EA=B3=B5=EC=9C=A0(vi?= =?UTF-8?q?ew-shot=C2=B7expo-sharing)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 6 +- mobile/app.json | 9 ++- mobile/package.json | 3 + mobile/src/app/week.tsx | 15 +++- mobile/src/components/post/post-card.tsx | 25 +++--- mobile/src/components/sheets/region.tsx | 21 ++++- mobile/src/components/top-bar.tsx | 14 ++-- mobile/src/lib/region.tsx | 54 ++++++++++++- mobile/src/lib/share-image.ts | 18 +++++ package-lock.json | 97 ++++++++++++++++++++++++ 10 files changed, 231 insertions(+), 31 deletions(-) create mode 100644 mobile/src/lib/share-image.ts diff --git a/TODO.md b/TODO.md index 0185530..77d7fbb 100644 --- a/TODO.md +++ b/TODO.md @@ -166,15 +166,15 @@ | [x] | 1단계: 웹·앱 공통 코드 `shared/`(`@nalssigak/shared`) 분리, 루트 npm workspaces, 웹 Docker 빌드 대상을 루트로 | 앱과 API 클라이언트·로직 공유 | `package.json`, `shared/`, `frontend/Dockerfile`, `compose.yaml`, `.dockerignore` | | [x] | 2단계: 앱에 react-query·Uniwind 설정 + Metro가 `react`를 `mobile/node_modules`(19.2.3) 것만 쓰게 설정 — 루트에는 웹용 react 19.3.0이 있고 RN 렌더러는 19.2.3에서만 돌아감 | 앱 시작 준비 | `mobile/metro.config.js`, `mobile/src/app/_layout.tsx`, `mobile/src/lib/query-client.ts` | | [x] | 앱 토큰 저장소 `expo-secure-store`로 `configureApi` 연결, API 주소는 `EXPO_PUBLIC_API_BASE_URL` | 웹은 localStorage | `mobile/src/lib/api.ts`, `mobile/.env.example` | -| [ ] | 시뮬레이터·실기기에서 앱 띄워 API 호출·로그인 확인 (번들 빌드까지만 확인함) | | `mobile/` | +| [ ] | Xcode 설치 후 시뮬레이터에서 전체 확인 (시트·로그인·좋아요·위치 권한·이미지 공유) — 지금은 Expo 웹 화면과 iOS 번들 빌드까지만 확인 | | `mobile/` | | [x] | 3단계-1: 탭 5개 구조·위 막대·하늘 배경·밤 테마(Uniwind dark), Today 히어로·각 순위·행사/TOP5/계절 띠 | | `mobile/src/app/`, `mobile/src/components/` | | [x] | Today 게시물 카드(슬라이드 7종·넘기기·좋아요·댓글·텍스트 공유), 3·6·9번째 글 뒤 띠 | | `mobile/src/components/post/`, `mobile/src/app/index.tsx` | | [x] | 시트 7종(각 근거·읽을거리·댓글·이번 주 특집·로그인/가입·내 정보·지역 고르기)을 RN `Modal`로, 위 막대 로그인/아바타 | 새 패키지 없이 | `mobile/src/components/sheets/`, `mobile/src/components/top-bar.tsx` | | [x] | 고른 지역 저장 (SecureStore) | | `mobile/src/lib/region.tsx` | -| [ ] | **[결정 필요]** '지금 위치로 찾기' — `expo-location` 새 패키지 필요 | 웹은 처음 온 사람 위치로 구를 맞춤 | `mobile/src/lib/region.tsx`, `mobile/src/components/sheets/region.tsx` | +| [x] | 위치로 지역 찾기(`expo-location`): 처음 켠 사람은 가장 가까운 구로, 지역 시트 '지금 위치로 찾기' | 웹과 같게 | `mobile/src/lib/region.tsx`, `mobile/src/components/sheets/region.tsx` | | [x] | 움직임: 해·구름 떨어지기/둥둥, 비·눈, 스켈레톤 깜빡임, 첫 로딩 덮개, 하늘색 서서히 바뀜, 밤 별 반짝임 ('동작 줄이기' 켜면 멈춤) | | `mobile/src/components/today/hero.tsx`, `first-load.tsx`, `sky-bg.tsx` | | [x] | 나머지 탭(각·노을·주말·행사·계절·상식) 옮기기 | | `mobile/src/app/`, `mobile/src/components/{gak,sky,week,season}/` | -| [ ] | **[결정 필요]** 게시물·주말 일정을 이미지로 공유 — 지금은 텍스트만. `react-native-view-shot` + `expo-sharing` 새 패키지 필요 | 웹은 스토리 이미지 | `mobile/src/components/post/post-card.tsx`, `mobile/src/app/week.tsx` | +| [x] | 이미지로 공유(`react-native-view-shot` + `expo-sharing`): 게시물은 보고 있는 슬라이드, 주말은 고른 날 추천 카드 | 웹 스토리 이미지(머리말·주소 붙인 9:16)와는 다름 | `mobile/src/lib/share-image.ts` | | [ ] | 웹과 다른 작은 것들: 좋아요 튀는 하트·토스트, 밤 별똥별, 단풍잎 떨어짐, 시 구절 고운바탕 글꼴, 실패·빈 안내가 스켈레톤 높이를 유지(웹 hold), 시트 배경이 판과 같이 올라옴 | 1차 이전에서 뺌 | `mobile/src/` | | [ ] | **[결정 필요]** `mobile/` 템플릿 부속물(`.claude`, `AGENTS.md`, `.vscode`, `LICENSE`, 예제 화면) 둘지 지울지 | create-expo-app 기본 템플릿 | `mobile/` | | [ ] | `frontend-dev` 개발 컨테이너 실제로 띄워 확인 (이미지 빌드만 확인, 5173이 사용 중이라 실행은 못 함) | 볼륨 경로 바뀜 | `compose.yaml` | diff --git a/mobile/app.json b/mobile/app.json index ad8d618..c2ae299 100644 --- a/mobile/app.json +++ b/mobile/app.json @@ -33,7 +33,14 @@ "imageWidth": 76 } ], - "expo-secure-store" + "expo-secure-store", + "expo-sharing", + [ + "expo-location", + { + "locationWhenInUsePermission": "가장 가까운 동네 날씨를 보여 드리려고 위치를 써요." + } + ] ], "experiments": { "typedRoutes": true, diff --git a/mobile/package.json b/mobile/package.json index e3103cd..1019e19 100644 --- a/mobile/package.json +++ b/mobile/package.json @@ -16,8 +16,10 @@ "expo-image": "~57.0.5", "expo-linear-gradient": "~57.0.2", "expo-linking": "~57.0.12", + "expo-location": "~57.0.21", "expo-router": "~57.0.26", "expo-secure-store": "~57.0.4", + "expo-sharing": "~57.0.23", "expo-splash-screen": "~57.0.10", "expo-status-bar": "~57.0.1", "expo-symbols": "~57.0.3", @@ -31,6 +33,7 @@ "react-native-safe-area-context": "~5.7.0", "react-native-screens": "~4.26.0", "react-native-svg": "15.15.4", + "react-native-view-shot": "5.1.0", "react-native-web": "~0.21.0", "react-native-worklets": "0.10.1", "tailwindcss": "^4.3.3", diff --git a/mobile/src/app/week.tsx b/mobile/src/app/week.tsx index 0c4fd18..8bd3c96 100644 --- a/mobile/src/app/week.tsx +++ b/mobile/src/app/week.tsx @@ -1,13 +1,14 @@ import { getWeekOptions, getWeekRankingOptions, listEventsOptions, listPlacesOptions } from '@nalssigak/shared/api/client/@tanstack/react-query.gen'; import { loadOf, shortDay } from '@nalssigak/shared/lib'; import { useQuery } from '@tanstack/react-query'; -import { useState } from 'react'; -import { Pressable, RefreshControl, ScrollView, Share, Text, View } from 'react-native'; +import { useRef, useState } from 'react'; +import { Pressable, RefreshControl, ScrollView, Text, View } from 'react-native'; import { DayStrip, EventRow, PickCard, PlaceCard, RankRow } from '@/components/week/sections'; import { DaysSkel, EventsSkel, PickSkel, PlacesSkel, RankSkel } from '@/components/week/skels'; import { Chips, Rail, Sec, Skel, StateBox } from '@/components/ui'; import { useRegion } from '@/lib/region'; +import { shareView } from '@/lib/share-image'; import { SITE_URL } from '@/lib/site'; // 불러오는 동안에도 탭 줄 높이를 지키려고 같은 칩을 미리 그린다 @@ -44,10 +45,12 @@ export default function WeekScreen() { const placeLoad = sel ? loadOf(places) : weekLoad === 'loading' ? 'loading' : 'ready'; const refresh = () => Promise.all([week.refetch(), events.refetch(), ranking.refetch(), sel ? places.refetch() : null]); + const pickShot = useRef(null); + // 고른 날 추천 카드를 이미지로 const sendPlan = () => { if (!sel) return; const message = [`${sel.weekday}요일 일정 · ${region.name}`, sel.headline, sel.summary, sel.pick, `날씨각 ${SITE_URL}`].filter(Boolean).join('\n'); - Share.share({ message }).catch((e: unknown) => console.warn('일정 공유 실패', e)); + void shareView(pickShot, { title: `${sel.weekday}요일 일정`, message }); }; const placeSub = sel ? `${sel.weekday}요일은 ${rainy ? '비가 와서 실내 명소를 먼저' : sel.icon === 'sun' ? '맑아서 야외 명소를 먼저' : '비 소식이 없어 야외 명소를 먼저'} 보여 줘요` : weekLoad === 'loading' ? undefined : '날씨에 맞춰 골라 보여 줘요'; @@ -65,7 +68,11 @@ export default function WeekScreen() { ) : ( week.refetch()} empty="날씨가 아직 없어요." /> )} - {sel && } + {sel && ( + + + + )} {(sel || weekLoad !== 'ready') && ( <> 30km 안 · 데이트 명소 diff --git a/mobile/src/components/post/post-card.tsx b/mobile/src/components/post/post-card.tsx index c942d68..6217b71 100644 --- a/mobile/src/components/post/post-card.tsx +++ b/mobile/src/components/post/post-card.tsx @@ -3,7 +3,7 @@ import { PostType, type PostData, type ResFeed } from '@nalssigak/shared/api/cli import { useMutation, useQueryClient, type QueryClient } from '@tanstack/react-query'; import { LinearGradient } from 'expo-linear-gradient'; import { useEffect, useRef, useState } from 'react'; -import { Animated, Pressable, Share, Text, View } from 'react-native'; +import { Animated, Pressable, Text, View } from 'react-native'; import Svg, { Path } from 'react-native-svg'; import { useCSSVariable } from 'uniwind'; @@ -13,6 +13,7 @@ import { slideBg, SlideView } from '@/components/post/slides'; import { Ic, Skel } from '@/components/ui'; import { useAuth } from '@/lib/auth'; import { useSheet } from '@/lib/sheet'; +import { shareView } from '@/lib/share-image'; import { SITE_URL } from '@/lib/site'; const ACCOUNTS: Record = { @@ -125,9 +126,9 @@ function FullCard({ post }: PostProps) { const n = post.slides.length; const patch = (values: Partial) => patchFeed(queryClient, post.post_id, values); const comments = () => open({ type: 'comments', postId: post.post_id }); - const share = () => { - Share.share({ message: `${post.title} · 날씨각 ${SITE_URL}` }).catch((e: unknown) => console.warn('공유 실패', e)); - }; + const shot = useRef(null); + // 지금 보고 있는 슬라이드를 이미지로 + const share = () => void shareView(shot, { title: post.title, message: `${post.title} · 날씨각 ${SITE_URL}` }); useEffect(() => { if (!likeFailed) return; @@ -179,13 +180,15 @@ function FullCard({ post }: PostProps) { setWidth(e.nativeEvent.layout.width)} className="aspect-[4/5] overflow-hidden" accessibilityLabel={n > 1 ? `슬라이드 ${n}장, 옆으로 넘겨 보세요` : undefined}> - {width > 0 && ( - - {post.slides.map((s, i) => ( - - ))} - - )} + + {width > 0 && ( + + {post.slides.map((s, i) => ( + + ))} + + )} + {n > 1 && ( diff --git a/mobile/src/components/sheets/region.tsx b/mobile/src/components/sheets/region.tsx index e55ccf9..6d49bdd 100644 --- a/mobile/src/components/sheets/region.tsx +++ b/mobile/src/components/sheets/region.tsx @@ -1,7 +1,7 @@ import { listRegionsOptions } from '@nalssigak/shared/api/client/@tanstack/react-query.gen'; import { loadOf } from '@nalssigak/shared/lib'; import { useQuery } from '@tanstack/react-query'; -import { useDeferredValue, useState } from 'react'; +import { useDeferredValue, useEffect, useRef, useState } from 'react'; import { Pressable, Text, View } from 'react-native'; import { Skel, StateBox } from '@/components/ui'; @@ -11,6 +11,8 @@ import { useSheet } from '@/lib/sheet'; import { Body, Field } from './parts'; +const LOCATE_TEXT = { idle: '', locating: '위치를 찾는 중이에요…', denied: '위치 권한이 꺼져 있어요. 아래 목록에서 골라 주세요.', error: '위치를 찾지 못했어요. 아래 목록에서 골라 주세요.' } as const; + const N14 = Array.from({ length: 14 }, (_, i) => i); function RegionsSkel() { @@ -25,9 +27,16 @@ function RegionsSkel() { ); } -/** 지역 바꾸기: 구 이름으로 찾기 + 목록 */ +/** 지역 바꾸기: 지금 위치로 찾기 + 구 이름으로 찾기 + 목록 */ export function RegionSheet({ onDone }: { onDone: () => void }) { - const { region, setRegion } = useRegion(); + const { region, setRegion, locate, locateStatus } = useRegion(); + const alive = useRef(true); + useEffect(() => { + alive.current = true; + return () => { + alive.current = false; + }; + }, []); const { me, logout } = useAuth(); const { open } = useSheet(); const [q, setQ] = useState(''); @@ -38,6 +47,12 @@ export function RegionSheet({ onDone }: { onDone: () => void }) { return ( + locate(() => alive.current && onDone())} disabled={locateStatus === 'locating'} className="items-center rounded-full border-b-[5px] border-orange-deep bg-orange p-3 disabled:opacity-60"> + 지금 위치로 찾기 + + + {LOCATE_TEXT[locateStatus]} + {listLoad === 'loading' && } {listLoad !== 'loading' && !regions.length && list.refetch()} empty="찾는 구가 없어요." />} diff --git a/mobile/src/components/top-bar.tsx b/mobile/src/components/top-bar.tsx index 0c6056e..0c4f79c 100644 --- a/mobile/src/components/top-bar.tsx +++ b/mobile/src/components/top-bar.tsx @@ -8,7 +8,7 @@ import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { useCSSVariable } from 'uniwind'; import { PinIcon } from '@/components/svg'; -import { Avatar, Ic } from '@/components/ui'; +import { Avatar, Ic, Skel } from '@/components/ui'; import { useAuth } from '@/lib/auth'; import { useRegion } from '@/lib/region'; import { useSheet } from '@/lib/sheet'; @@ -54,7 +54,7 @@ function Account() { export function TopBar() { const pathname = usePathname(); - const { region } = useRegion(); + const { region, locateStatus } = useRegion(); const { open } = useSheet(); const { kind } = useSky(); const { top } = useSafeAreaInsets(); @@ -67,9 +67,13 @@ export function TopBar() { open({ type: 'region' })} accessibilityLabel={`위치 바꾸기, 지금 ${region.name}`} className="ml-auto shrink-0 flex-row items-center gap-1 rounded-full border-b-4 border-shade bg-card px-3 pt-1 pb-1.5"> - - {region.name.split(' ').at(-1)} - + {locateStatus === 'locating' ? ( + + ) : ( + + {region.name.split(' ').at(-1)} + + )} diff --git a/mobile/src/lib/region.tsx b/mobile/src/lib/region.tsx index 7f55b67..b2055fc 100644 --- a/mobile/src/lib/region.tsx +++ b/mobile/src/lib/region.tsx @@ -1,11 +1,15 @@ +import { nearestRegion } from '@nalssigak/shared/api/client/sdk.gen'; import type { RegionData } from '@nalssigak/shared/api/client/types.gen'; import { DEFAULT_REGION } from '@nalssigak/shared/lib'; +import * as Location from 'expo-location'; import * as SecureStore from 'expo-secure-store'; -import { createContext, use, useCallback, useMemo, useState, type ReactNode } from 'react'; +import { createContext, use, useCallback, useEffect, useMemo, useState, type ReactNode } from 'react'; const KEY = 'nalssigak.region'; -export type RegionApi = { region: RegionData; setRegion: (r: RegionData) => void }; +export type LocateStatus = 'idle' | 'locating' | 'denied' | 'error'; + +export type RegionApi = { region: RegionData; setRegion: (r: RegionData) => void; locate: (onFound?: () => void) => void; locateStatus: LocateStatus }; const RegionContext = createContext(null); @@ -25,8 +29,22 @@ function readStored(): RegionData | null { } } +/** 위치 권한을 받아 가장 가까운 구. 권한이 없으면 'denied' */ +async function findNearest(): Promise { + const { status } = await Location.requestForegroundPermissionsAsync(); + if (status !== 'granted') return 'denied'; + const pos = (await Location.getLastKnownPositionAsync({ maxAge: 600000 })) ?? (await Location.getCurrentPositionAsync({ accuracy: Location.Accuracy.Balanced })); + const { data } = await nearestRegion({ query: { lat: pos.coords.latitude, lon: pos.coords.longitude } }); + if (!data.region) throw new Error('가까운 구를 찾지 못함'); + return data.region; +} + export function RegionProvider({ children }: { children: ReactNode }) { - const [region, setRegionState] = useState(() => readStored() ?? DEFAULT_REGION); + const [stored] = useState(readStored); + const [region, setRegionState] = useState(stored ?? DEFAULT_REGION); + // 처음 켠 사람은 위치로 가장 가까운 구를 찾는 동안 지역 칩을 스켈레톤으로 + const [locateStatus, setLocateStatus] = useState(stored ? 'idle' : 'locating'); + const setRegion = useCallback((r: RegionData) => { setRegionState(r); try { @@ -35,6 +53,34 @@ export function RegionProvider({ children }: { children: ReactNode }) { console.warn('지역을 저장하지 못함', e); } }, []); - const api = useMemo(() => ({ region, setRegion }), [region, setRegion]); + + const locate = useCallback( + (onFound?: () => void) => { + setLocateStatus('locating'); + findNearest() + .then((r) => { + if (r === 'denied') return setLocateStatus('denied'); + setLocateStatus('idle'); + setRegion(r); + onFound?.(); + }) + .catch((e: unknown) => { + console.warn('위치로 지역을 찾지 못함', e); + setLocateStatus('error'); + }); + }, + [setRegion], + ); + + // 처음 켠 사람만 위치 권한을 물어 가장 가까운 구로 맞춘다. 못 찾으면 조용히 기본 구 + useEffect(() => { + if (stored) return; + findNearest() + .then((r) => r !== 'denied' && setRegion(r)) + .catch((e: unknown) => console.warn('첫 위치로 지역을 찾지 못함', e)) + .finally(() => setLocateStatus('idle')); + }, [stored, setRegion]); + + const api = useMemo(() => ({ region, setRegion, locate, locateStatus }), [region, setRegion, locate, locateStatus]); return {children}; } diff --git a/mobile/src/lib/share-image.ts b/mobile/src/lib/share-image.ts new file mode 100644 index 0000000..50a93d1 --- /dev/null +++ b/mobile/src/lib/share-image.ts @@ -0,0 +1,18 @@ +import * as Sharing from 'expo-sharing'; +import type { RefObject } from 'react'; +import { Share, type View } from 'react-native'; +import { captureRef } from 'react-native-view-shot'; + +/** 보이는 화면 조각을 PNG로 찍어 공유. 이미지 공유가 안 되는 곳(웹 등)이면 글로 보낸다 */ +export async function shareView(ref: RefObject, { title, message }: { title: string; message: string }) { + try { + if (ref.current && (await Sharing.isAvailableAsync())) { + const uri = await captureRef(ref, { format: 'png', quality: 1, result: 'tmpfile' }); + await Sharing.shareAsync(uri, { mimeType: 'image/png', UTI: 'public.png', dialogTitle: title }); + return; + } + await Share.share({ message }); + } catch (e) { + console.warn('공유 실패', e); + } +} diff --git a/package-lock.json b/package-lock.json index 05ca5b4..5a36d01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,8 +51,10 @@ "expo-image": "~57.0.5", "expo-linear-gradient": "~57.0.2", "expo-linking": "~57.0.12", + "expo-location": "~57.0.21", "expo-router": "~57.0.26", "expo-secure-store": "~57.0.4", + "expo-sharing": "~57.0.23", "expo-splash-screen": "~57.0.10", "expo-status-bar": "~57.0.1", "expo-symbols": "~57.0.3", @@ -66,6 +68,7 @@ "react-native-safe-area-context": "~5.7.0", "react-native-screens": "~4.26.0", "react-native-svg": "15.15.4", + "react-native-view-shot": "5.1.0", "react-native-web": "~0.21.0", "react-native-worklets": "0.10.1", "tailwindcss": "^4.3.3", @@ -5486,6 +5489,15 @@ "dev": true, "license": "MIT" }, + "node_modules/base64-arraybuffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz", + "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -6151,6 +6163,15 @@ "hyphenate-style-name": "^1.0.3" } }, + "node_modules/css-line-break": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/css-line-break/-/css-line-break-2.1.0.tgz", + "integrity": "sha512-FHcKFCZcAha3LwfVBhCQbW2nCNbkZXn7KVUJcsT5/P8YmfsVja0FMPJr0B903j/E69HUphKiV9iQArX8SDYA4w==", + "license": "MIT", + "dependencies": { + "utrie": "^1.0.2" + } + }, "node_modules/css-select": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz", @@ -7550,6 +7571,18 @@ "react-native": "*" } }, + "node_modules/expo-location": { + "version": "57.0.21", + "resolved": "https://registry.npmjs.org/expo-location/-/expo-location-57.0.21.tgz", + "integrity": "sha512-up1e2Dqo4vzhyqzVB9ssRoP3p+VlIU6wJBHqipBenCijJYwnxAJjYv4nlBN0jRGk+4CixufCIkE9y2ZLH6594g==", + "license": "MIT", + "dependencies": { + "@expo/image-utils": "^0.11.6" + }, + "peerDependencies": { + "expo": "*" + } + }, "node_modules/expo-modules-autolinking": { "version": "57.0.15", "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-57.0.15.tgz", @@ -7694,6 +7727,22 @@ "node": ">=20.16.0" } }, + "node_modules/expo-sharing": { + "version": "57.0.23", + "resolved": "https://registry.npmjs.org/expo-sharing/-/expo-sharing-57.0.23.tgz", + "integrity": "sha512-fN+jrqoWwOpIo+X4utiu/ayCWym23DMgvrTJUHoopkBeO6rEa79ZY4f6ApOlRxvEx2NgQgJEQX+cbPJrjOSRog==", + "license": "MIT", + "dependencies": { + "@expo/config-plugins": "^57.0.10", + "@expo/config-types": "^57.0.2", + "@expo/plist": "^0.8.1" + }, + "peerDependencies": { + "expo": "*", + "react": "*", + "react-native": "*" + } + }, "node_modules/expo-splash-screen": { "version": "57.0.10", "resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-57.0.10.tgz", @@ -8488,6 +8537,19 @@ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "license": "ISC" }, + "node_modules/html2canvas": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/html2canvas/-/html2canvas-1.4.1.tgz", + "integrity": "sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==", + "license": "MIT", + "dependencies": { + "css-line-break": "^2.1.0", + "text-segmentation": "^1.0.3" + }, + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/http-errors": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", @@ -11925,6 +11987,23 @@ "react-native": "*" } }, + "node_modules/react-native-view-shot": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/react-native-view-shot/-/react-native-view-shot-5.1.0.tgz", + "integrity": "sha512-JZgElCD82aO+hejIF/leUzI7JufL9mgJ6ChzGWIcdZ2ajpaEvvSnvIcw0qD32XWkrbId8wfSbyz/4u/ulTQzQA==", + "license": "MIT", + "dependencies": { + "html2canvas": "^1.4.1" + }, + "engines": { + "node": ">=20", + "npm": ">=10" + }, + "peerDependencies": { + "react": ">=18.0.0", + "react-native": ">=0.76.0" + } + }, "node_modules/react-native-web": { "version": "0.21.4", "resolved": "https://registry.npmjs.org/react-native-web/-/react-native-web-0.21.4.tgz", @@ -13223,6 +13302,15 @@ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", "license": "MIT" }, + "node_modules/text-segmentation": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/text-segmentation/-/text-segmentation-1.0.3.tgz", + "integrity": "sha512-iOiPUo/BGnZ6+54OsWxZidGCsdU8YbE4PSpdPinp7DeMtUJNJBoJ/ouUSTJjHkh1KntHaltHl/gDs2FC4i5+Nw==", + "license": "MIT", + "dependencies": { + "utrie": "^1.0.2" + } + }, "node_modules/throat": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", @@ -13953,6 +14041,15 @@ "node": ">= 0.4.0" } }, + "node_modules/utrie": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/utrie/-/utrie-1.0.2.tgz", + "integrity": "sha512-1MLa5ouZiOmQzUbjbu9VmjLzn1QLXBhwpUa7kdLUQK+KQ5KA9I1vk5U4YHe/X2Ch7PYnJfWuWT+VbuxbGwljhw==", + "license": "MIT", + "dependencies": { + "base64-arraybuffer": "^1.0.2" + } + }, "node_modules/uuid": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz",