react-native-confirmation-code-input icon indicating copy to clipboard operation
react-native-confirmation-code-input copied to clipboard

Get Code text on every update of Field

Open PujanShah22 opened this issue 6 years ago • 2 comments

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.

PujanShah22 avatar Aug 18 '19 11:08 PujanShah22

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

AliRehman7141 avatar Apr 22 '20 14:04 AliRehman7141

@PujanShah22 @AliRehman7141

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

retyui avatar May 02 '20 08:05 retyui