import { Ionicons } from "@expo/vector-icons"; import { Tabs } from "expo-router"; import type { ComponentProps, JSX } from "react"; import type { ColorValue } from "react-native"; type IoniconName = ComponentProps["name"]; function TabIcon({ name, color }: { name: IoniconName; color: ColorValue }): JSX.Element { // RN 0.88's `ColorValue` also admits `null` and processed numbers, which Ionicons rejects. const iconColor = color === null || typeof color === "number" ? undefined : color; return ; } export default function TabsLayout(): JSX.Element { return ( , }} /> , }} /> ); }