import * as React from "react"; import {DimensionValue, GestureResponderEvent, StyleProp, TextStyle} from "react-native"; import {PageProps} from "../page"; import {LayoutChangeEvent} from "react-native/Libraries/Types/CoreEventTypes"; export type IProps = PageProps & { /** * 内容 */ readonly children?: React.ReactNode /** * 宽度 */ readonly width?: DimensionValue /** * 高度 */ readonly height?: DimensionValue /** * 样式 */ 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 /** * 在装载和布局更改时调用 */ readonly onLayer?: ((event: LayoutChangeEvent) => void) | undefined }