import React, {CSSProperties, FC} from "react"; import {View} from "@tarojs/components"; import {ITouchEvent} from "@tarojs/components/types/common"; import './TouchableOpacity.scss'; interface IProps { children?: any; className?: string; onPress: (event: ITouchEvent) => void; /** * 暂未实现 */ activeOpacity?: number; style?: string | CSSProperties; disabled?: boolean; } const TouchableOpacity:FC = ({children, className, style, disabled, onPress})=>{ return ( {children} ); } export default React.memo(TouchableOpacity);