Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Code text on every update of Field #59

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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