react-native-sectioned-multi-select
Advanced tools
Comparing version 0.8.0 to 0.8.1
# Changelog | ||
## 0.8.1 - 2020-11-03 | ||
### Fixed | ||
- React NAtive's UIManager.setLayoutAnimationEnabledExperimental causing tests fail. This version has fix for it. \n Details: | ||
```sh | ||
TypeError: _reactNative.UIManager.setLayoutAnimationEnabledExperimental is not a function | ||
``` | ||
## 0.8.0 - 2020-10-01 | ||
@@ -4,0 +13,0 @@ |
@@ -22,3 +22,3 @@ import React, { Component } from 'react' | ||
if (Platform.OS === 'android') { | ||
UIManager.setLayoutAnimationEnabledExperimental(true) | ||
UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true) | ||
} | ||
@@ -25,0 +25,0 @@ this.state = { |
{ | ||
"name": "react-native-sectioned-multi-select", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "a multi (or single) select component with support for sub categories, search, chips.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,8 +37,13 @@ # react-native-sectioned-multi-select | ||
import Icon from 'react-native-vector-icons/MaterialIcons` | ||
... | ||
<SectionedMultiSelect IconRenderer={Icon} /> | ||
``` | ||
Similarly, for Expo environments you can use: | ||
``` | ||
import {MaterialIcons} from '@expo/vector-icons'; | ||
... | ||
<SectionedMultiSelect IconRenderer={MaterialIcons} /> | ||
``` | ||
If you prefer to use your own icon images or icon font, the `IconRenderer` prop can be used to replace the icons used. | ||
@@ -45,0 +50,0 @@ See an example here: https://github.com/renrizzolo/react-native-sectioned-multi-select/blob/9c5f71852aef7a7ac03e7761d5dd810cd2ccef5d/exampleapp/App.js#L322-L397 (note the switch, you can refer to this to know what to map icon names to e.g if you're just passing in a different RN Vector Icons font). |
3504849
360