peterp / react-native-tags

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

Prevent visual feedback when readonly is true #12

Closed dajaffe closed 6 years ago

dajaffe commented 6 years ago

When readonly is true, the tags still show a visual feedback (opacity). This could confuse end-users to thinking something should happen. Setting the opacity to 1 if readonly is true (no visual feedback) prevents any visual feedback.

0.2 when readonly is false is the default activeOpacity of the TouchableOpacity.

peterp commented 6 years ago

Nice! Thanks, this is so cool!