@rn-components-dropdown/dropdown 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,7 @@ const DropdownComponent = (props) => {
75
75
  </AppText_1.default>) : (<react_native_1.View style={styles.showMultiSelectContainer}>
76
76
  <react_native_1.ScrollView showsVerticalScrollIndicator={false}>
77
77
  <react_native_1.View style={styles.wraps}>
78
- {currentValue?.map?.((i) => (<Chip_1.default label={i.name} chipColor={'red'} textColor={'white'} key={i?.[valueField]} onClearPress={() => onClearPress(i)}/>))}
78
+ {currentValue?.map?.((i) => (<Chip_1.default chipColor={'red'} textColor={'white'} key={i?.[valueField]} label={i?.[labelField]} onClearPress={() => onClearPress(i)}/>))}
79
79
  </react_native_1.View>
80
80
  </react_native_1.ScrollView>
81
81
  </react_native_1.View>)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rn-components-dropdown/dropdown",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {
@@ -138,10 +138,10 @@ const DropdownComponent = <T, Mode extends 'single' | 'multi'>(
138
138
  <View style={styles.wraps}>
139
139
  {currentValue?.map?.((i: any) => (
140
140
  <Chip
141
- label={i.name}
142
141
  chipColor={'red'}
143
142
  textColor={'white'}
144
143
  key={i?.[valueField]}
144
+ label={i?.[labelField]}
145
145
  onClearPress={() => onClearPress(i)}
146
146
  />
147
147
  ))}