NativeScript-Cardio
[![B
npm i --save nativescript-cardio

npm npm Build Status

安装

  • tns plugin add nativescript-cardio

使用

import { CardIO } from 'nativescript-cardio';

const cardIO = new CardIO();
cardIO.show((card: Card) => {
/*
Card {
number: string;
expMonth: number;
expYear: number;
cvv: string;
image: ImageSource;
type: CardType;
name: string;
postalCode?: string;
android: any;
ios: any;
}
*/
});