This commit is contained in:
Fredrik Burmester
2025-11-14 20:05:39 +01:00
parent 2be78a232c
commit e6dd433821
46 changed files with 187 additions and 270 deletions

View File

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