import * as React from "react"; import {ColorValue, StyleProp, TextStyle} from "react-native"; import {GestureResponderEvent} from "react-native/Libraries/Types/CoreEventTypes"; import {PageProps} from "../page"; export interface IProps extends PageProps { readonly isDebug?: boolean // 是否可以选择复制 readonly isSelectable?: boolean readonly selectableColor?: ColorValue // 内容 readonly children?: React.ReactNode readonly text?: number | string // 颜色 readonly color?: ColorValue // 字体大小 readonly size?: number // 行高 readonly lineHeight?: number // 显示行数,多余文字小数点代替,需要width辅助 readonly line?: number // width readonly width?: number // height readonly height?: number // weight readonly weight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' // 文本格式 readonly textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify' // 样式 readonly style?: StyleProp // 不可点击样式 readonly notPressStyle?: StyleProp // notPressTime,默认 100毫秒 readonly notPressTime?: number // 点击事件 readonly onPress?: ((event: GestureResponderEvent) => void) | undefined; readonly onLongPress?: ((event: GestureResponderEvent) => void) | undefined; }