mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-14 00:02:24 +00:00
Made text UI scaling follow OS level scailing to a limit to stop overlapping issues Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
21 lines
460 B
TypeScript
21 lines
460 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
|
|
maxFontSizeMultiplier={1.3}
|
|
style={[{ color: "white" }, style]}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
|
|
return (
|
|
<RNText
|
|
maxFontSizeMultiplier={1.3}
|
|
style={[{ color: "white" }, style]}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
}
|