Files
streamyfin/components/common/Text.tsx
Fredrik Burmester e6dd433821 wip
2025-11-14 20:05:39 +01:00

17 lines
384 B
TypeScript

import { Platform, Text as RNText, type TextProps } from "react-native";
export function Text({ className, ...props }: TextProps) {
if (Platform.isTV)
return (
<RNText allowFontScaling={false} style={{ color: "white" }} {...props} />
);
return (
<RNText
allowFontScaling={false}
className={`text-white ${className}`}
{...props}
/>
);
}