mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com> Signed-off-by: lancechant <13349722+lancechant@users.noreply.github.com> Co-authored-by: Fredrik Burmester <fredrik.burmester@gmail.com> Co-authored-by: Uruk <contact@uruk.dev> Co-authored-by: Gauvain <68083474+Gauvino@users.noreply.github.com>
21 lines
454 B
TypeScript
21 lines
454 B
TypeScript
import { Platform, Text as RNText, type TextProps } from "react-native";
|
|
export function Text(props: TextProps) {
|
|
const { style, ...otherProps } = props;
|
|
if (Platform.isTV)
|
|
return (
|
|
<RNText
|
|
allowFontScaling={false}
|
|
style={[{ color: "white" }, style]}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
|
|
return (
|
|
<RNText
|
|
allowFontScaling={false}
|
|
style={[{ color: "white" }, style]}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
}
|