Hello, i want to program my own button in card component view and when i press it to remove card? How can i do that? I think i should use swipeYup function?
I tried with
function Card({ data }) {
return (
<View style={[styles.card, { backgroundColor: data.backgroundColor }]}>
<Text>{data.text}</Text>
<Button title="dsfsdf" onPress={() => handleYup(data)} />
</View>
);
}
function handleYup(card) {
console.log(`Yup for ${card.text}`);
return true; // return false if you wish to cancel the action
}
Not work at all ! Where i should use swipeYup or swipeNope
Hello, i want to program my own button in card component view and when i press it to remove card? How can i do that? I think i should use swipeYup function? I tried with
Not work at all ! Where i should use swipeYup or swipeNope