react-native-credit-card-input
react-native-credit-card-input copied to clipboard
how to set onChange func?
trafficstars
Hi, I probably missed something. can someone explain how to handle on change prop? If i want to extract the number and the other fields to state object.
Thanks,
this should be a stackoverflow question, not a ticket, but i'll answer for help:
// inside render
<CreditCardInput onChange={this._onCreditCardChanged} />
// outside render(){...}
private _onCreditCardChanged = (result) => {
console.log(result);
};
look at the log when running app.