ttdung11t2 / react-native-confirmation-code-input

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

onChangeCode callback and defaultCode props added. Readme updated. #33

Open rahulhaque opened 6 years ago

rahulhaque commented 6 years ago

Added a callback function onChangeCode that will return the last input code every time a value is changed. Added a new props defaultCode which will set the initial value for the code inputs. defaultCode must be used with autoFocus set to false as this overrides the focus for inputs.

Dror-Bar commented 6 years ago

Thanks, I've been using this specifically for the onChanceCode function.

rahulhaque commented 6 years ago

@retyui, I was thinking of doing the same but didn't manage to get enough time. Your repo looks good. However, the readme can include some more info. Thank you btw.

rahulhaque commented 6 years ago

It would be nice if you could include all the props in the table. i.e onChangeCode callback is missing. @retyui

AliRehman7141 commented 4 years ago

I have tried this onChangeCode callback but it didn't give the code

Dror-Bar commented 4 years ago

@AliRehman7141 Did you implement the code in node modules?