react-native-tags-input
Advanced tools
+8
-5
@@ -121,2 +121,3 @@ import React from 'react'; | ||
| keysForTag, | ||
| deleteElement, | ||
| deleteIconStyles, | ||
@@ -160,6 +161,8 @@ customElement, | ||
| <TouchableHighlight onPress={() => this.deleteTag(count, tags, updateState) }> | ||
| <Image | ||
| source={require('./assets/close.png')} | ||
| style={StyleSheet.flatten([styles.deleteIcon, deleteIconStyles])} | ||
| /> | ||
| {deleteElement ? deleteElement : ( | ||
| <Image | ||
| source={require('./assets/close.png')} | ||
| style={StyleSheet.flatten([styles.deleteIcon, deleteIconStyles])} | ||
| /> | ||
| )} | ||
| </TouchableHighlight> | ||
@@ -261,2 +264,2 @@ </View> | ||
| export default Tags; | ||
| export default Tags; |
+1
-1
| { | ||
| "name": "react-native-tags-input", | ||
| "version": "1.0.5", | ||
| "version": "1.0.6", | ||
| "description": "Input component for React Native to add and remove tags.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+1
-0
@@ -37,2 +37,3 @@ # react-native-tags-input | ||
| |disabledInputStyle| |styles| Styles for when the input is disabled| | ||
| |deleteElement| |element|If this is included, the delete icon will be replaced by the element provided. (Thanks to periabyte)| | ||
| |deleteIconStyles| |styles|Styles for the delete icon| | ||
@@ -39,0 +40,0 @@ |customElement| |element|Element to be displayed between input and tags. For example suggestions. (Auto suggestions will be implemented in a future release)| |
15082
1.6%242
1.68%192
0.52%