feat: 앱 GA4 이벤트 틀(track, 웹과 같은 이벤트 목록을 shared로) — 기존 앱 기능에 창_열기·각_보기·글_열기·로그인·지역_변경·좋아요·댓글·신고·차단·약관_동의·공유, 전송은 Firebase 연결 뒤. 탭 밖 화면용 루트 스택
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
fcc7ed804c
commit
cab3336859
20 files changed
+201
-110
No files matched your search
@@ -5,6 +5,7 @@ import { Text } from '@/components/text';
|
||||
import Animated, { Easing, useAnimatedStyle, useReducedMotion, useSharedValue, withTiming } from 'react-native-reanimated';
|
||||
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
||||
|
||||
import { track } from '@/lib/analytics';
|
||||
import { SheetContext, useSheet, type SheetState } from '@/lib/sheet';
|
||||
|
||||
import { ArticleSheet, SeasonWeekSheet } from './article';
|
||||
@@ -16,7 +17,10 @@ import { RegionSheet } from './region';
|
||||
|
||||
export function SheetProvider({ children }: { children: ReactNode }) {
|
||||
const [state, setState] = useState<SheetState>(null);
|
||||
const open = useCallback((s: Exclude<SheetState, null>) => setState(s), []);
|
||||
const open = useCallback((s: Exclude<SheetState, null>) => {
|
||||
track('sheet_open', { sheet: s.type });
|
||||
setState(s);
|
||||
}, []);
|
||||
const close = useCallback(() => setState(null), []);
|
||||
const api = useMemo(() => ({ open, close }), [open, close]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user