feat: 앱 위치로 지역 찾기(expo-location), 게시물·주말 일정 이미지 공유(view-shot·expo-sharing)
This commit is contained in:
1 parent
f71dd2cebb
commit
26bb6a00d2
10 files changed
+231
-31
No files matched your search
@@ -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() {
|
||||
<SeasonChip />
|
||||
<Pressable onPress={() => 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">
|
||||
<PinIcon size={14} color={ink} />
|
||||
<Text numberOfLines={1} className="text-[13.5px] font-bold text-ink">
|
||||
{region.name.split(' ').at(-1)}
|
||||
</Text>
|
||||
{locateStatus === 'locating' ? (
|
||||
<Skel className="w-[52px]" />
|
||||
) : (
|
||||
<Text numberOfLines={1} className="text-[13.5px] font-bold text-ink">
|
||||
{region.name.split(' ').at(-1)}
|
||||
</Text>
|
||||
)}
|
||||
</Pressable>
|
||||
<Account />
|
||||
</View>
|
||||
|
||||
Reference in new issue
Block a user