react-native-sectioned-multi-select
Advanced tools
Comparing version 0.7.7 to 0.7.8
# Changelog | ||
## 0.7.8 - 2020-09-25 | ||
### Fixed | ||
- fix global icon assignment #203 | ||
- check for subkey here idk #173 | ||
- fix recipe #111 | ||
## 0.7.7 - 2020-04-20 | ||
### Fixed | ||
- types definition fixes | ||
@@ -10,2 +20,3 @@ | ||
### Fixed | ||
- fixed chip padding when using `hideChipRemove` | ||
@@ -16,2 +27,3 @@ | ||
### Added | ||
- added `hideChipRemove` boolean prop to hide chips' remove (x) touchable #150 | ||
@@ -22,2 +34,3 @@ | ||
### Added | ||
- added type definitions file #63 | ||
@@ -24,0 +37,0 @@ |
@@ -18,8 +18,5 @@ import React, { PureComponent } from 'react' | ||
import { isEqual } from 'lodash' | ||
// import Icon from 'react-native-vector-icons/MaterialIcons' | ||
import { RowItem } from './components' | ||
import { callIfFunction } from './helpers' | ||
let Icon | ||
const Touchable = Platform.OS === 'android' ? TouchableNativeFeedback : TouchableOpacity | ||
@@ -253,10 +250,10 @@ | ||
if (props.iconRenderer) { | ||
Icon = props.iconRenderer | ||
this.Icon = props.iconRenderer | ||
this.iconLoaded = true | ||
} else { | ||
Icon = require('react-native-vector-icons/MaterialIcons').default | ||
this.Icon = require('react-native-vector-icons/MaterialIcons').default | ||
this.iconLoaded = true | ||
} | ||
this.state = { | ||
@@ -792,3 +789,3 @@ selector: false, | ||
const item = this._findItem(singleSelectedItem) | ||
const isParent = item[subKey] && item[subKey].length | ||
const isParent = subKey && item[subKey] && item[subKey].length | ||
@@ -847,3 +844,3 @@ if (!item || !item[displayKey]) return null | ||
{callIfFunction(chipRemoveIconComponent) || ( | ||
<Icon | ||
<this.Icon | ||
name="close" | ||
@@ -894,3 +891,3 @@ style={[ | ||
<RowItem | ||
iconRenderer={Icon} | ||
iconRenderer={this.Icon} | ||
item={item} | ||
@@ -988,3 +985,3 @@ mergedStyles={styles} | ||
/> | ||
<View | ||
@@ -1009,3 +1006,3 @@ style={[ | ||
{callIfFunction(searchIconComponent) || ( | ||
<Icon name="search" size={18} style={{ marginHorizontal: 15 }} /> | ||
<this.Icon name="search" size={18} style={{ marginHorizontal: 15 }} /> | ||
)} | ||
@@ -1090,3 +1087,3 @@ </View> | ||
{callIfFunction(cancelIconComponent) || ( | ||
<Icon size={24} name="cancel" style={{ color: 'white' }} /> | ||
<this.Icon size={24} name="cancel" style={{ color: 'white' }} /> | ||
)} | ||
@@ -1149,3 +1146,3 @@ </View> | ||
{callIfFunction(selectToggleIconComponent) || ( | ||
<Icon | ||
<this.Icon | ||
size={24} | ||
@@ -1152,0 +1149,0 @@ name="keyboard-arrow-down" |
{ | ||
"name": "react-native-sectioned-multi-select", | ||
"version": "0.7.7", | ||
"version": "0.7.8", | ||
"description": "a multi (or single) select component with support for sub categories, search, chips.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -276,3 +276,3 @@ # Recipes | ||
searchAdornment = (searchTerm) => | ||
searchTerm.length ? ( | ||
return (searchTerm.length ? ( | ||
<TouchableOpacity | ||
@@ -290,3 +290,3 @@ style={{ alignItems: 'center', justifyContent: 'center' }} | ||
</TouchableOpacity> | ||
) : null; | ||
) : null); | ||
``` | ||
@@ -293,0 +293,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3481519
33
11797
1
2