fix: resolve TypeScript errors caught by typecheck

- _layout: replace invalid SFSymbols7_0 name "calendar.fill" with
  "calendar.circle.fill" (the fill variant of calendar in SF Symbols)
- useColors: remove unsafe cast through Record<string, palette> —
  colors.radius (number) is incompatible with the palette shape;
  simplify to a direct ternary since both light and dark palettes
  are always defined

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-16 12:34:09 +02:00
parent c89f61a77f
commit ba9e4a5add
2 changed files with 2 additions and 5 deletions
@@ -13,7 +13,7 @@ function NativeTabLayout() {
return (
<NativeTabs>
<NativeTabs.Trigger name="index">
<Icon sf={{ default: "calendar", selected: "calendar.fill" }} />
<Icon sf={{ default: "calendar", selected: "calendar.circle.fill" }} />
<Label>Calendar</Label>
</NativeTabs.Trigger>
<NativeTabs.Trigger name="posts">