- {item.name}
+ {item[this.state.nameValue]}
setTimeout(() => { this.props.onRemoveItem(item, index) }, 0) } style={{ backgroundColor: '#f16d6b', alignItems: 'center', justifyContent: 'center', width: 25, height: 25, borderRadius: 100, marginLeft: 10}}>
X
diff --git a/readme.md b/readme.md
index dcd999a..7ffeec2 100644
--- a/readme.md
+++ b/readme.md
@@ -111,6 +111,15 @@ npm install --save react-native-searchable-dropdown
onRemoveItem |
{ (item, index) => { } } note: work when if multi prop is true |
+
+ idValue |
+ prop name of the dataset id value, default 'id' |
+
+
+ nameValue |
+ prop name of the dataset name value, default 'name' |
+
+
# Example