Skip to content

Conversation

PujanShah22
Copy link

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.

quangtuandev added a commit to quangtuandev/react-native-confirmation-code-input that referenced this pull request Aug 24, 2019
@AliRehman7141
Copy link

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

@retyui
Copy link

retyui commented May 2, 2020

@PujanShah22 @AliRehman7141

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants