react-native-bc-scan-card-module
v0.1.7
Published
Stripe based react native scan card module
Downloads
292
Readme
react-native-bc-scan-card-module
Helps with scanning credit card with camera
Installation
npm install react-native-bc-scan-card-module
Usage
import { ScanCard } from 'react-native-bc-scan-card-module';
// ...
const logo = require('./assets/camera.png');
const buttonImageSrc = Image.resolveAssetSource(logo as any);
<ScanCard
style={styles.scanCardView}
buttonImageSrc={buttonImageSrc}
stripePublishableKey="<your_stripe_public_key>"
onScanFinished={(event: any) => {
console.log(event.nativeEvent);
}}
/>
const styles = StyleSheet.create({
scanCardView: {
height: 50,
width: 50,
},
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library