jwohlfert23 / react-native-tag-input

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

FEATURE REQ: Allow spaces inside the Tags? #68

Closed jamesone closed 6 years ago

jamesone commented 6 years ago

Is this feature already here? (I couldn't find it)

If not, is it possible that this feature could be added? Are there any limitations that's preventing this feature from being implemented on Android or IOS?

Ashoat commented 6 years ago

This is a fully controlled component, so it's actually up to you to determine what is or isn't allowed in the tags. Whenever the input text changes, the onChangeText callback property will get called. It's up to you to mutate the value property (which contains the list of tags) based on the updated text, so you could simply choose not to add new entries to the value array when spaces are added.

sam9010 commented 4 years ago

can you give me example?