import { View, Text } from "react-native"; import React from "react"; import { Image } from "expo-image"; import { useTailwind } from "tailwind-rn"; import { Badge, ListItem, Button } from "@rneui/themed"; import { useNavigation } from "@react-navigation/native"; const blurhash = "LcKUTa%gOYWBYRt6xuoJo~s8V@fk"; export default function MessageCard({ data, listRef }) { const navigation = useNavigation(); const tailwind = useTailwind(); return ( navigation.navigate("MessageDetail", { mid: data.mid, name: data.name, price: data.price, }) } bottomDivider onSwipeBegin={() => { listRef.current.setNativeProps({ scrollEnabled: false, }); }} onSwipeEnd={() => { listRef.current.setNativeProps({ scrollEnabled: true, }); }} containerStyle={tailwind("p-0")} rightContent={(reset) => (