import * as React from "react"; import {ColorValue, DimensionValue, GestureResponderEvent, StyleProp, TextStyle} from "react-native"; import {PageProps} from "../page"; export type IProps = PageProps & { readonly isDebug?: boolean // 是否可以选择复制 readonly isSelectable?: boolean /** * 内容 */ readonly children?: React.ReactNode /** * 内容 */ readonly text?: number | string | undefined /** * 是否是纯文本 */ readonly hasText?: boolean /** * 字体颜色 */ readonly color?: ColorValue /** * 字体大小 */ readonly size?: number | string /** * 行高 */ readonly lineHeight?: number | string /** * 显示行数,多余文字小数点代替,需要width辅助 */ readonly line?: number | string /** * 宽度 */ readonly width?: DimensionValue /** * 高度 */ readonly height?: DimensionValue /** * 粗细 */ readonly weight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | undefined /** * 文本格式 */ readonly textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify' | undefined /** * 样式 */ readonly style?: StyleProp | { [key: string]: any } /** * 是否可以连续点击 */ readonly hasContinuousClick?: boolean /** * 不可点击样式 */ readonly notPressStyle?: StyleProp | { [key: string]: any } /** * 不可点击时间 */ readonly notPressTimer?: number | string /** * 点击事件 */ readonly onPress?: ((event: GestureResponderEvent) => void) | undefined /** * 长按事件 */ readonly onLongPress?: ((event: GestureResponderEvent) => void) | undefined }