feat: 앱 나머지 화면 이전 — 게시물 카드·시트·각/노을/주말/계절 탭·움직임

- 게시물 카드 슬라이드 7종, 좋아요·댓글, 텍스트 공유
- 시트 7종(RN Modal), 위 막대 지역·계절·로그인/아바타
- 각·노을·주말·행사·계절·상식 탭, 당겨서 새로고침
- 히어로 해·구름·비·눈 움직임, 스켈레톤 깜빡임, 첫 로딩 덮개, 하늘색 전환
This commit is contained in:
minaChoi committed 2026-10-14 14:45:56 +09:00
1 parent 28ff032160
commit f71dd2cebb
33 files changed
+2786 -75

No files matched your search

+16 -3
View File
@@ -2,7 +2,8 @@ import { AVATAR_COLORS, moodEmoji, naverMap, type Load } from '@nalssigak/shared
import { Image, type ImageStyle } from 'expo-image';
import { LinearGradient } from 'expo-linear-gradient';
import { Link, type Href } from 'expo-router';
import { useState, type ReactNode } from 'react';
import { useEffect, useState, type ReactNode } from 'react';
import Animated, { cancelAnimation, Easing, useAnimatedStyle, useReducedMotion, useSharedValue, withRepeat, withTiming } from 'react-native-reanimated';
import { Linking, Pressable, ScrollView, Text, View, type StyleProp, type ViewStyle } from 'react-native';
import { ICONS } from '@/lib/icons';
@@ -38,9 +39,21 @@ export function Thumb({ image, icon, iconSize, className, style, children }: { i
);
}
/** 불러오는 동안 자리만 잡는 막대 */
/** 불러오는 동안 자리만 잡는 막대. 천천히 깜빡인다 (웹 animate-pulse, 동작 줄이기면 멈춤) */
export function Skel({ className }: { className?: string }) {
return <View className={`h-[0.9em] min-h-3 rounded-full bg-skel ${className ?? ''}`} />;
const reduce = useReducedMotion();
const dim = useSharedValue(0);
useEffect(() => {
if (reduce) return;
dim.value = withRepeat(withTiming(1, { duration: 1000, easing: Easing.bezier(0.4, 0, 0.6, 1) }), -1, true);
return () => cancelAnimation(dim);
}, [reduce, dim]);
const pulse = useAnimatedStyle(() => ({ opacity: 1 - dim.value * 0.5 }));
return (
<Animated.View style={pulse}>
<View className={`h-[0.9em] min-h-3 rounded-full bg-skel ${className ?? ''}`} />
</Animated.View>
);
}
export function Sec({ title, sub, more }: { title: string; sub?: string; more?: Href }) {