update interface
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user