mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
26 lines
551 B
TypeScript
26 lines
551 B
TypeScript
import { Platform, Text as RNText, type TextProps } from "react-native";
|
|
import { UITextView } from "react-native-uitextview";
|
|
export function Text(
|
|
props: TextProps & {
|
|
uiTextView?: boolean;
|
|
},
|
|
) {
|
|
const { style, ...otherProps } = props;
|
|
if (Platform.isTV)
|
|
return (
|
|
<RNText
|
|
allowFontScaling={false}
|
|
style={[{ color: "white" }, style]}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
|
|
return (
|
|
<UITextView
|
|
allowFontScaling={false}
|
|
style={[{ color: "white" }, style]}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
}
|