more implementations

This commit is contained in:
Hailey
2024-01-15 04:57:35 -08:00
parent aa96bba066
commit 9f5b7602c1
9 changed files with 197 additions and 66 deletions
+3 -3
View File
@@ -3,7 +3,7 @@ import {Text as RNText, TextProps} from 'react-native'
import {s, lh} from 'lib/styles'
import {useTheme, TypographyVariant} from 'lib/ThemeContext'
import {isIOS} from 'platform/detection'
import ExpoSelectableTextView from '../../../../../modules/expo-selectable-text/src/ExpoUITextView'
import {UITextView} from '../../../../../modules/expo-selectable-text'
export type CustomTextProps = TextProps & {
type?: TypographyVariant
@@ -29,11 +29,11 @@ export function Text({
if (selectable && isIOS) {
return (
<ExpoSelectableTextView
<UITextView
style={[s.black, typography, lineHeightStyle, style]}
{...props}>
{children}
</ExpoSelectableTextView>
</UITextView>
)
}