feat: native selectable text for titles

This commit is contained in:
Fredrik Burmester
2024-10-08 19:53:48 +02:00
parent 91b926e6c2
commit 66cd36a899
7 changed files with 17 additions and 9 deletions

View File

@@ -1,11 +1,16 @@
import React from "react";
import { TextProps } from "react-native";
import { Text as DefaultText } from "react-native";
export function Text(props: TextProps) {
import { UITextView } from "react-native-uitextview";
export function Text(
props: TextProps & {
uiTextView?: boolean;
}
) {
const { style, ...otherProps } = props;
return (
<DefaultText
<UITextView
allowFontScaling={false}
style={[{ color: "white" }, style]}
{...otherProps}