1.1.0 • Published 2 months ago

react-native-wallet-cards v1.1.0

Weekly downloads
24
License
ISC
Repository
github
Last release
2 months ago

React Native Wallet Cards

React Native component for displaying cards with a wallet style.

Usage

$ npm install --save react-native-wallet-cards
Compact viewExpand view
npm.ionpm.io
import CardsWallet from 'react-native-wallet-cards';
import { View, Text } from 'react-native';

export class Wallet extends Component {

    data = [
        <View style={{flex: 1}}><Text>Content Card 1</Text></View>,
        <View style={{flex: 1}}><Text>Content Card 2</Text></View>,
        <View style={{flex: 1}}><Text>Content Card 3</Text></View>,
        <View style={{flex: 1}}><Text>Content Card 4</Text></View>,
        <View style={{flex: 1}}><Text>Content Card 5</Text></View>,
        <View style={{flex: 1}}><Text>Content Card 6</Text></View>
    ]

    render () {
        return (
            <CardsWallet 
                data={this.data}
            />
        );
    }
}

Properties

Note: Data is the only property required by the component.

PropDescriptionDefault
cardHeightHeight of each card.170
cardBgColorBackground color of each card.white
cardBorderRadiusBorder radius for the card.10
cardShadowColorCard shadow color.#000
showCardShadowenable / disable card shadow.true
cardSeparationSeparation distance between each card.50
cardEasingTiming function for the animation: linear, ease, ease-in, ease-out, ease-in-out, ease-in-cubic, ease-out-cubic, ease-in-out-cubic, ease-in-circ, ease-out-circ, ease-in-out-circ, ease-in-expo, ease-out-expo, ease-in-out-expo, ease-in-quad, ease-out-quad, ease-in-out-quad, ease-in-quart, ease-out-quart, ease-in-out-quart, ease-in-quint, ease-out-quint, ease-in-out-quint, ease-in-sine, ease-out-sine, ease-in-out-sine, ease-in-back, ease-out-back, ease-in-out-back.ease-in-out
easingTimeAnimation duration time (milliseconds).300
autoCloseClose all cards except the selected card.false
cardOpenOffsetOffset between the open card and the next card20
1.1.0

2 months ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago