mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 23:59:08 +00:00
17 lines
384 B
TypeScript
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}
|
|
/>
|
|
);
|
|
}
|