evOo-local/apps/mobile/components/native-symbol.tsx
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

31 lines
746 B
TypeScript

import Ionicons from "@react-native-vector-icons/ionicons";
import { SymbolView } from "expo-symbols";
import type { ComponentProps } from "react";
import type { ColorValue } from "react-native";
import { useMobileTokens } from "../lib/native";
export function NativeSymbol({
ios,
android,
size = 18,
color,
}: {
ios: string;
android: ComponentProps<typeof Ionicons>["name"];
size?: number;
color?: ColorValue;
}) {
const tokens = useMobileTokens();
const tint = color ?? tokens.foreground;
return (
<SymbolView
name={ios as never}
size={size}
tintColor={tint}
weight="medium"
resizeMode="scaleAspectFit"
fallback={<Ionicons name={android} size={size} color={tint} />}
/>
);
}