- Expo SDK 57 + expo-router, react-query, Uniwind(Tailwind v4), SecureStore 토큰 - Metro 가 앱의 react(19.2.3)만 쓰게 고정 (루트에는 웹용 react 19.3.0) - 탭 5개·위 막대·시간대 하늘 배경·밤 테마, 오늘 히어로·각 순위·행사/TOP5/계절 띠 - 남은 이전 작업은 TODO.md 앱 마이그레이션 표
14 lines
476 B
TypeScript
14 lines
476 B
TypeScript
import { configureApi } from '@nalssigak/shared/api/setup';
|
|
import * as SecureStore from 'expo-secure-store';
|
|
|
|
configureApi({
|
|
baseUrl: process.env.EXPO_PUBLIC_API_BASE_URL ?? 'http://localhost:9810',
|
|
storage: {
|
|
getItem: (key) => SecureStore.getItem(key),
|
|
setItem: (key, value) => SecureStore.setItem(key, value),
|
|
removeItem: (key) => {
|
|
SecureStore.deleteItemAsync(key).catch((e: unknown) => console.warn('토큰 삭제 실패', key, e));
|
|
},
|
|
},
|
|
});
|