peterp / react-native-tags

Tag input component for React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to show updated value.

lovey92 opened this issue · comments

Hi @peterp

I have integrated this library and it is really great library.

I have only one issue and that is I want to make value in 000 - 000 - 0000 format. I have implement the function for the same as well but don't know how to update the state and which prop is used to display the updated value.

For example :-

onChangeTags={tags => this.props.formatPhone(tags)}

formatPhone is a function which return number value to 000 - 000 - 0000 format but it should not reflect the same in the input field.

Please help!

Thanks
Regards

Lovedeep Singh

Hey there - thanks for the kind words -

onChangeTags receives a list of all the tags after they have been inserted. You want to modify them before they're inserted?

Hey there, I'm going to close this, but if you need some help please re-open it.