Include button prop with <CardItem> to achieve onClick function with card items.
Syntax
{% codetabs name="React Native", type="js" -%} import React, { Component } from "react"; import { Container, Header, Content, Card, CardItem, Text, Body } from "native-base"; export default class CardItemButton extends Component { render() { return (
<CardItem header button onPress={() => alert("This is Card Header")}> NativeBase <CardItem button onPress={() => alert("This is Card Body")}> Click on any carditem <CardItem footer button onPress={() => alert("This is Card Footer")}> GeekyAnts ); } } {%- language name="Vue Native", type="vue" -%} NativeBase Click on any carditem.GeekyAnts <script> export default { methods: { handleHeaderClick: function() { alert("This is Card Header"); }, handleBodyClick: function() { alert("This is Card Body"); }, handleFooterClick: function() { alert("This is Card Footer"); } } }; </script>
{%- endcodetabs %}

