import React from 'react'; import {StyleProp, StyleSheet, ViewStyle} from 'react-native'; import rpx from '@/utils/rpx'; import {TouchableOpacity} from 'react-native'; import Image from './image'; import {ImgAsset} from '@/constants/assetsConst'; import ThemeText from './themeText'; interface IImageBtnProps { uri?: string; title?: string; onPress?: () => void; style?: StyleProp; } export default function ImageBtn(props: IImageBtnProps) { const {onPress, uri, title, style: _style} = props ?? {}; return ( {title ?? ''} ); } const style = StyleSheet.create({ wrapper: { width: rpx(210), height: rpx(290), flexGrow: 0, flexShrink: 0, justifyContent: 'space-between', }, image: { width: rpx(210), height: rpx(210), borderRadius: rpx(12), }, });