react-native-paper
react-native-paper copied to clipboard
feat: pressable card title
trafficstars
Motivation
I needed the option to press the card title
Test plan
Two test cases on the Card.Title component - Card.Title without onPressTitle props {...props, onPressTitle:undefined} make sure the card functions normally - Card.Title with onPressTitle props = () => {Alert.alert("Pressed")}
Both are tested in the Card example👇
After press event on card title
Hey @mtch99, thank you for your pull request 🤗. The documentation from this branch can be viewed here.