diff --git a/modules/expo-selectable-text/src/ExpoSelectableText.types.ts b/modules/expo-selectable-text/src/ExpoSelectableText.types.ts index 878207a94b..e012eb5553 100644 --- a/modules/expo-selectable-text/src/ExpoSelectableText.types.ts +++ b/modules/expo-selectable-text/src/ExpoSelectableText.types.ts @@ -14,7 +14,7 @@ export interface ExpoProTextViewProps extends ExpoProTextViewCommonProps { export interface ExpoProTextNativeViewProps extends ExpoProTextViewCommonProps { segments: string - textStyle?: ExpoProTextStyle + textStyle?: TextStyle onTextPress?: (event: ExpoProTextPressEvent) => void onTextLongPress?: (event: ExpoProTextPressEvent) => void onTextLayout?: (event: ExpoProTextLayoutEvent) => void @@ -23,16 +23,6 @@ export interface ExpoProTextNativeViewProps extends ExpoProTextViewCommonProps { rootStyle?: string } -interface ExpoProTextStyle { - color: ColorValue - fontSize?: number - fontStyle?: 'normal' | 'italic' - fontWeight?: 'normal' | 'bold' - letterSpacing?: number - textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify' - lineHeight?: number -} - export interface ExpoProTextLayoutEvent { nativeEvent: { height: number @@ -48,7 +38,7 @@ export interface ExpoProTextPressEvent { export interface ExpoProTextSegment { index: number text: string - style?: ExpoProTextStyle + style?: TextStyle handlePress?: boolean handleLongPress?: boolean } diff --git a/src/view/com/util/text/Text.tsx b/src/view/com/util/text/Text.tsx index 8b00d2e593..eca265741d 100644 --- a/src/view/com/util/text/Text.tsx +++ b/src/view/com/util/text/Text.tsx @@ -30,6 +30,8 @@ export function Text({ // {"color":"#000000","fontSize":20,"letterSpacing":0.2,"fontWeight":"400","flex":1,"lineHeight":26} + // if (false) { + // TODO remove if (selectable && isIOS) { return (