Open PujanShah22 opened 5 years ago
is the callback is working now or not? onCodeChange={(code) => { this.state.code = code }}
@PujanShah22 @AliRehman7141
You can use a fork without this problem https://github.com/retyui/react-native-confirmation-code-field
I want to get current code at any time but it was missing. So,I create a callback function called
onCodeChange={(code) => { this.state.code = code }}
This will be called on each single change of input code fields. It will return a current code. So, we can store it in our state or anywhere you want to use.