Home

Awesome

React Native Credit Card 💳

A better credit card form for React Native

React native port of the display of Card by @jessepollak

rn-credit-card rn-ios

Demo

https://exp.host/@sonnylazuardi/react-native-credit-card-demos

Background

This is a react native port of Card. There is a react port of Card, but it still renders on browser DOM (which is not as good as native view), so this library will take advantage of both.

Goals

Design Resources

I got the design resources from the Ramakrishna V's dribbble

design

Usage

import CreditCard from 'react-native-credit-card';


<CreditCard
    type={this.state.type}
    imageFront={require('./images/card-front.png')}
    imageBack={require('./images/card-back.png')}
    shiny={false}
    bar={false}
    focused={this.state.focused}
    number={this.state.number}
    name={this.state.name}
    expiry={this.state.expiry}
    cvc={this.state.cvc}/>

Available props

Todo

Examples

todo.

Most of the credit goes to @jessepollak and @JohnyDays for creating and mantaining Card and React Credit Card, I just ported it over to React Native.