Note These bindings only implement card tokenization for now (iOS and Android). Feel free to fork, bridge additional functionality and create a pull request.
$ npm install react-native-card-connect --save
For RN Version < 0.60 (no autolinking)
$ react-native link react-native-card-connect
For RN Version > 0.60 (with autolinking) nothing needs to be done other than installing the package.
import CardConnect from 'react-native-card-connect';
import moment from 'moment';
expDate = moment('12/22', 'MM/YY').toISOString();
CardConnect.setEndpoint('fts.cardconnect.com')
// card, expiration date, CVV
CardConnect.generateTokenForCard('4788250000121443', expDate, '123', (error, token) => {
// handle error or generated token
});