Skip to content

Latest commit

 

History

History
executable file
·
27 lines (23 loc) · 1.08 KB

CardOnClick.md

File metadata and controls

executable file
·
27 lines (23 loc) · 1.08 KB

Card OnClick

To navigate between screens on click of a card, include button prop with the <CardItem> component.

Preview ios Card_OnClick Preview android Card_OnClick

Syntax

import React, { Component } from 'react';
import { Container, Content, Card, CardItem, Text, Thumbnail } from 'native-base';
export default class CardOnClickExample extends Component {
    render() {
        return (
            <Container>
                <Content>
                    <Card>
                        <CardItem button onPress={function_call()}>
                            <Thumbnail source={require('./img/NSP.png')} />
                            <Text>Native Starter Pro</Text>
                        </CardItem>
                   </Card>
                </Content>
            </Container>
        );
    }
}