Socket
Socket
Sign inDemoInstall

react-native-sectioned-multi-select

Package Overview
Dependencies
569
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.7 to 0.7.8

exampleapp/package-lock.json

13

CHANGELOG.md
# 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 @@

23

lib/sectioned-multi-select.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc