mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-23 19:48:20 +00:00
Hopefully fixing scaling across different TV types for android/ios Test for login screen at the moment Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
21 lines
453 B
TypeScript
21 lines
453 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={true}
|
|
style={[{ color: "white" }, style]}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
|
|
return (
|
|
<RNText
|
|
allowFontScaling={false}
|
|
style={[{ color: "white" }, style]}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
}
|