@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
tsx 12 lines 596 Bytes
Raw
1 import { Host } from "@expo/ui/jetpack-compose";
2 import { type ComponentProps } from "react";
3 import { createNativeThemeColors } from "../../lib/nativeTheme";
4 import { useControlTheme } from "./useControlTheme";
5
6 export function NativeThemeHost(
7 props: Omit<ComponentProps<typeof Host>, "colorScheme" | "seedColor" | "colorOverrides">,
8 ) {
9 const { colors, colorScheme, systemColorsActive } = useControlTheme();
10 const colorOverrides = systemColorsActive ? undefined : createNativeThemeColors(colors);
11 return <Host {...props} colorScheme={colorScheme} colorOverrides={colorOverrides} />;
12 }