peterp / react-native-tags

Tag input component for React Native
MIT License
288 stars 75 forks source link

deleteTagOnPress not working when readonly set to true #18

Closed dongawli closed 6 years ago

dongawli commented 6 years ago

Hi,

Thank you for the tags component, really very simple. Is there any way to delete the tags when we set the readonly property true? My requirement is tag without input text.

Thank you,

peterp commented 6 years ago

Hey there, thanks, you might be able to set the inputStyle prop to height: 0. I'll expand the readonly property to be discrete about what you're disabling in the future.

<Tags inputStyle={{ height: 0 }} />
dongawli commented 6 years ago

Hi Peter,

Thank you for quick response. The solution works but still there is some UI issue. The "textInputContainer" style has minWidth: 100 which still showing the textInput component.
image

I think, it would be great if textInputContainer style can be made configurable.

Thank you

peterp commented 6 years ago

Hey, thanks for this, I'll try and get this add for you in the next few hours.