upd: pressout jadi press

This commit is contained in:
amel
2025-03-13 11:58:02 +08:00
parent 99b7fb656f
commit 5e94c60a2f
7 changed files with 7 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ export default function BorderBottomItem({ title, subtitle, icon, desc, onPress,
const lebar = width ? lebarDim * width / 100 : 'auto';
return (
<Pressable style={[borderType == 'bottom' ? Styles.wrapItemBorderBottom : borderType == 'all' ? Styles.wrapItemBorderAll : Styles.wrapItemBorderNone, bgColor && bgColor == 'white' && ColorsStatus.white]} onPressOut={onPress}>
<Pressable style={[borderType == 'bottom' ? Styles.wrapItemBorderBottom : borderType == 'all' ? Styles.wrapItemBorderAll : Styles.wrapItemBorderNone, bgColor && bgColor == 'white' && ColorsStatus.white]} onPress={onPress}>
<View style={[Styles.rowItemsCenter]}>
{icon}
<View style={[Styles.rowSpaceBetween, width ? { width: lebar } : { width: '88%' }]}>

View File

@@ -8,7 +8,7 @@ type PropsBtnHeader = {
export function ButtonHeader({ onPress, item }: PropsBtnHeader) {
return (
<Pressable onPressOut={() => {onPress()}}>
<Pressable onPress={() => {onPress()}}>
<View style={[Styles.btnIconHeader]}>
{item}
</View>

View File

@@ -11,7 +11,7 @@ type Props = {
export default function ButtonSelect({ value, onPress, round }: Props) {
return (
<View style={[Styles.mv15]}>
<Pressable onPressOut={onPress}>
<Pressable onPress={onPress}>
<View style={[Styles.inputRoundForm, Styles.inputRoundFormRight, round && Styles.round30, Styles.pv10]}>
<Feather name="arrow-right-circle" size={20} color="black" />
<Text style={[Styles.cBlack]}>{value}</Text>

View File

@@ -18,7 +18,7 @@ export default function DrawerBottom({ isVisible, setVisible, title, children, a
<View style={[Styles.modalContent, height != undefined && { height: `${height}%` }]}>
<View style={Styles.titleContainer}>
<Text style={Styles.textDefault}>{title}</Text>
<Pressable onPressOut={() => setVisible(false)}>
<Pressable onPress={() => setVisible(false)}>
<MaterialIcons name="close" color="black" size={22} />
</Pressable>
</View>

View File

@@ -9,7 +9,7 @@ type Props = {
export default function MenuItemRow({ onPress, icon, title }: Props) {
return (
<Pressable onPressOut={() => { onPress() }} style={[Styles.btnMenuRow]}>
<Pressable onPress={() => { onPress() }} style={[Styles.btnMenuRow]}>
<View style={{ alignItems: 'center' }}>
{icon}
<Text style={[Styles.mt05, {textAlign: 'center'}]}>{title}</Text>

View File

@@ -19,7 +19,7 @@ export default function ModalSelect({ open, close, title, category, choose, onSe
return (
<DrawerBottom animation="none" isVisible={open} setVisible={close} title={title} height={75}>
<View>
<Pressable style={[Styles.itemSelectModal]} onPressOut={() => {
<Pressable style={[Styles.itemSelectModal]} onPress={() => {
onSelect({ val: 'dinas', label: 'Dinas' })
setChoose('dinas')
close(false)

View File

@@ -28,7 +28,7 @@ export default function SelectForm({ label, value, placeholder, onPress, info, e
</Text>
)
}
<Pressable onPressOut={onPress}>
<Pressable onPress={onPress}>
<View style={[Styles.inputRoundForm, Styles.inputRoundFormRight, error && { borderColor: "red" }, round && Styles.round30, Styles.pv10, { backgroundColor: bg && bg == 'white' ? 'white' : 'transparent' }]}>
<Feather name="chevron-right" size={20} color="grey" />
{