update interface

This commit is contained in:
Hailey
2024-01-12 16:18:08 -08:00
parent 7dcac644ba
commit c9f0064836
2 changed files with 4 additions and 12 deletions
@@ -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
}
+2
View File
@@ -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 (
<SelectableText