update interface
This commit is contained in:
@@ -14,7 +14,7 @@ export interface ExpoProTextViewProps extends ExpoProTextViewCommonProps {
|
|||||||
|
|
||||||
export interface ExpoProTextNativeViewProps extends ExpoProTextViewCommonProps {
|
export interface ExpoProTextNativeViewProps extends ExpoProTextViewCommonProps {
|
||||||
segments: string
|
segments: string
|
||||||
textStyle?: ExpoProTextStyle
|
textStyle?: TextStyle
|
||||||
onTextPress?: (event: ExpoProTextPressEvent) => void
|
onTextPress?: (event: ExpoProTextPressEvent) => void
|
||||||
onTextLongPress?: (event: ExpoProTextPressEvent) => void
|
onTextLongPress?: (event: ExpoProTextPressEvent) => void
|
||||||
onTextLayout?: (event: ExpoProTextLayoutEvent) => void
|
onTextLayout?: (event: ExpoProTextLayoutEvent) => void
|
||||||
@@ -23,16 +23,6 @@ export interface ExpoProTextNativeViewProps extends ExpoProTextViewCommonProps {
|
|||||||
rootStyle?: string
|
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 {
|
export interface ExpoProTextLayoutEvent {
|
||||||
nativeEvent: {
|
nativeEvent: {
|
||||||
height: number
|
height: number
|
||||||
@@ -48,7 +38,7 @@ export interface ExpoProTextPressEvent {
|
|||||||
export interface ExpoProTextSegment {
|
export interface ExpoProTextSegment {
|
||||||
index: number
|
index: number
|
||||||
text: string
|
text: string
|
||||||
style?: ExpoProTextStyle
|
style?: TextStyle
|
||||||
handlePress?: boolean
|
handlePress?: boolean
|
||||||
handleLongPress?: boolean
|
handleLongPress?: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ export function Text({
|
|||||||
|
|
||||||
// {"color":"#000000","fontSize":20,"letterSpacing":0.2,"fontWeight":"400","flex":1,"lineHeight":26}
|
// {"color":"#000000","fontSize":20,"letterSpacing":0.2,"fontWeight":"400","flex":1,"lineHeight":26}
|
||||||
|
|
||||||
|
// if (false) {
|
||||||
|
// TODO remove
|
||||||
if (selectable && isIOS) {
|
if (selectable && isIOS) {
|
||||||
return (
|
return (
|
||||||
<SelectableText
|
<SelectableText
|
||||||
|
|||||||
Reference in New Issue
Block a user