- Expo SDK 57 + expo-router, react-query, Uniwind(Tailwind v4), SecureStore 토큰 - Metro 가 앱의 react(19.2.3)만 쓰게 고정 (루트에는 웹용 react 19.3.0) - 탭 5개·위 막대·시간대 하늘 배경·밤 테마, 오늘 히어로·각 순위·행사/TOP5/계절 띠 - 남은 이전 작업은 TODO.md 앱 마이그레이션 표
40 lines
1.7 KiB
TypeScript
40 lines
1.7 KiB
TypeScript
import Svg, { Circle, Path, Rect } from 'react-native-svg';
|
|
|
|
export type TabName = 'today' | 'gak' | 'sky' | 'week' | 'season';
|
|
|
|
const line = { fill: 'none', strokeLinecap: 'round', strokeLinejoin: 'round' } as const;
|
|
|
|
export function PinIcon({ size, color }: { size: number; color: string }) {
|
|
return (
|
|
<Svg viewBox="0 0 24 24" width={size} height={size} {...line} stroke={color} strokeWidth={2.2}>
|
|
<Path d="M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z" />
|
|
<Circle cx="12" cy="9.5" r="2.5" />
|
|
</Svg>
|
|
);
|
|
}
|
|
|
|
export function TabIcon({ name, size, color, strokeWidth }: { name: TabName; size: number; color: string; strokeWidth: number }) {
|
|
return (
|
|
<Svg viewBox="0 0 24 24" width={size} height={size} {...line} stroke={color} strokeWidth={strokeWidth}>
|
|
{name === 'today' && <Path d="M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z" />}
|
|
{name === 'gak' && (
|
|
<>
|
|
<Rect x="3.5" y="3.5" width="7" height="7" rx="2" />
|
|
<Rect x="13.5" y="3.5" width="7" height="7" rx="2" />
|
|
<Rect x="3.5" y="13.5" width="7" height="7" rx="2" />
|
|
<Rect x="13.5" y="13.5" width="7" height="7" rx="2" />
|
|
</>
|
|
)}
|
|
{name === 'sky' && <Path d="M3 18h18M6 14a6 6 0 0 1 12 0M12 4v3M4.9 7.9l2 2M19.1 7.9l-2 2M8 21h8" />}
|
|
{name === 'week' && (
|
|
<>
|
|
<Rect x="3.5" y="5" width="17" height="15.5" rx="2.5" />
|
|
<Path d="M3.5 10h17M8 3v4M16 3v4" />
|
|
<Circle cx="12" cy="15" r="1.6" />
|
|
</>
|
|
)}
|
|
{name === 'season' && <Path d="M12 6.5C10 5 7 4.5 3.5 5v14c3.5-.5 6.5 0 8.5 1.5 2-1.5 5-2 8.5-1.5V5C17 4.5 14 5 12 6.5zM12 6.5v14" />}
|
|
</Svg>
|
|
);
|
|
}
|