jwohlfert23 / react-native-tag-input

A simple React Native component that creates an input for tags, emails, etc.
MIT License
232 stars 104 forks source link

Prevent tags from being duplicated by adding only unique tags to list #20

Closed 0duaht closed 7 years ago

sibelius commented 7 years ago

tks, do u think it is better to have a prop to determine if we should avoid duplicates?

something like in this PR: https://github.com/jwohlfert23/react-native-tag-input/pull/21?

0duaht commented 7 years ago

Yes, @sibelius. I thought about that while working on this. And then scenarios where unique tags don't matter, and couldn't really think about a lot of use-cases. It's something we could add in though.

sibelius commented 7 years ago

it makes sense, tks