react-native-complete-flatlist
Advanced tools
Comparing version 1.1.29 to 1.1.30
10
index.js
@@ -95,3 +95,5 @@ import React, { Component } from "react"; | ||
searchBarBackgroundStyles, | ||
onSearch | ||
onSearch, | ||
placeholder, | ||
searchTextInputStyle, | ||
} = this.props; | ||
@@ -107,4 +109,4 @@ const { searchText } = this.state | ||
<TextInput | ||
style={styles.searchBar} | ||
placeholder={this.props.placeholder} | ||
style={[styles.searchBar, searchTextInputStyle]} | ||
placeholder={placeholder} | ||
clearButtonMode="while-editing" | ||
@@ -177,2 +179,3 @@ placeholderTextColor="#919188" | ||
placeholder: PropTypes.string, | ||
searchTextInputStyle: PropTypes.object, | ||
elementBetweenSearchAndList: PropTypes.element | ||
@@ -191,2 +194,3 @@ }; | ||
backgroundStyles: {}, | ||
searchTextInputStyle: {}, | ||
searchBarBackgroundStyles: {}, | ||
@@ -193,0 +197,0 @@ renderEmptyRow: () => ( |
{ | ||
"name": "react-native-complete-flatlist", | ||
"version": "1.1.29", | ||
"version": "1.1.30", | ||
"description": "A complete flatlist with search bar, highlighted search, pull to refresh, and etc is ready to use", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -100,2 +100,3 @@ # react-native-complete-flatlist | ||
|`placeholder`|string|Placeholder of search field|"Search ..."|Optional| | ||
|`searchTextInputStyle`|object (style for React Native's TextInput component)|style for search field|null|Optional| | ||
|`highlightColor`|color|color of higlighted words background when match search keyword|yellow|Optional| | ||
@@ -102,0 +103,0 @@ |`searchKey`|array of string|This should be name of keys available in data which will be use to search. ```**Warning: nested key not yet supported```|null|Optional (if not supplied, search field will not appear)| |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14285
219
105