import { ComponentType } from 'react' import { StandardProps } from './common' import { StyleProp, ViewStyle } from 'react-native' interface ViewProps extends StandardProps { /** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果 * @default none * @supported weapp, swan, alipay, tt, h5 * @rn 由于 RN 不支持 Class,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。 */ hoverClass?: string /** 由于 RN 不支持 Class,故 RN 端的 View 组件实现了 `hoverStyle`属性,写法和 style 类似,只不过 `hoverStyle` 的样式是指定按下去的样式。 * @default none * @supported rn */ hoverStyle?: StyleProp /** 指定是否阻止本节点的祖先节点出现点击态 * @default false * @supported weapp, swan, alipay, tt */ hoverStopPropagation?: boolean /** 按住后多久出现点击态,单位毫秒 * @default 50 * @supported weapp, swan, alipay, tt, h5, rn */ hoverStartTime?: number /** 手指松开后点击态保留时间,单位毫秒 * @default 400 * @supported weapp, swan, alipay, tt, h5, rn */ hoverStayTime?: number /** 是否以 catch 的形式绑定 touchmove 事件 */ catchMove?: boolean } /** 视图容器 * @classification viewContainer * @supported weapp, swan, alipay, tt, h5, rn * @example_react * ```tsx * export default class PageView extends Component { * constructor() { * super(...arguments) * } * * render() { * return ( * * flex-direction: row 横向布局 * * * * * * flex-direction: column 纵向布局 * * * * * * * ) * } * } * ``` * @example_vue * ```html * * * * ``` * @see https://developers.weixin.qq.com/miniprogram/dev/component/view.html */ declare const View: ComponentType export { View, ViewProps }