How to use react-native-awesome-card-io - 2 common examples

To help you get started, we’ve selected a few react-native-awesome-card-io examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github z-dev / react-native-checkout / src / components / addCard / index.js View on Github external
onPress={() => {
              if (this.props.onScanCardOpen) {
                this.props.onScanCardOpen()
              }
              if (Platform.OS === 'android') {
                CardIOModule.scanCard({
                  // guideColor: this.props.scanCardGuideColor, // This isn't working at the moment.
                  hideCardIOLogo: true,
                  suppressManualEntry: true,
                  suppressConfirmation: true,
                })
                  .then(card => this.didScanCard(card))
                  .catch(() => {
                    let refToFocus
                    if (!calculatedState.cardNumber) {
                      refToFocus = this.refs.cardNumberInput
                    } else if (!calculatedState.expiry) {
                      refToFocus = this.refs.expiryInput
                    } else {
                      refToFocus = this.refs.cvcInput
                    }
                    // Make sure keyboard stays open on android.
github z-dev / react-native-checkout / src / components / addCard / index.js View on Github external
componentWillMount() {
    if (CardIOUtilities.preload) {
      CardIOUtilities.preload()
    }
  }

react-native-awesome-card-io

A complete and cross-platform React Native component for card.io

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis