import {ColorValue, DimensionValue, GestureResponderEvent, StyleProp, TextStyle} from "react-native"; import {PageProps} from "../page"; export type IProps = PageProps & { readonly name: 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 size?: number | string readonly color?: ColorValue readonly style?: StyleProp | { [key: string]: any } readonly lineHeight?: number | string readonly hasPress?: boolean // 不可点击样式 readonly notPressStyle?: StyleProp | { [key: string]: any } // 不可点击时间 readonly notPressTimer?: number | string | undefined // 点击事件 readonly onPress?: ((event: GestureResponderEvent) => void) | undefined // 长按事件 readonly onLongPress?: ((event: GestureResponderEvent) => void) | undefined }