ttdung11t2 / react-native-confirmation-code-input

A react-native component to input confirmation code for both Android and IOS
MIT License
412 stars 351 forks source link

Get Code text on every update of Field #59

Open PujanShah22 opened 5 years ago

PujanShah22 commented 5 years ago

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.

AliRehman7141 commented 4 years ago

is the callback is working now or not? onCodeChange={(code) => { this.state.code = code }}

retyui commented 4 years ago

@PujanShah22 @AliRehman7141

You can use a fork without this problem https://github.com/retyui/react-native-confirmation-code-field