0
我有一個代碼編寫的反應本機掃描信用卡信息。我跟着https://github.com/kayla-tech/react-native-card-io。掃描儀能夠讀取我的卡號,但未能讀取我的過期和cvv。代碼如下。面對的問題與反應原生信用卡掃描器
componentDidMount() {
CardIOUtilities.preload();
}
alertfunction(out){
this.props.navigator.replace({id:'CreditCardPayment'})
console.log(out);
}
<View>
<CardIOView
style={styles.preview}
hideCardIOLogo={true}
allowFreelyRotatingCardGuide={true}
scanInstructions={'Hold card here. It will scan automatically.'}
scannedImageDuration={2}
detectionMode={CardIOView.automatic}
scanExpiry={true}
didScanCard={result => this.alertfunction(result)} />
</View>
任何幫助,將不勝感激。謝謝