react-native-complete-flatlist
Advanced tools
Comparing version 1.1.35 to 1.1.36
@@ -65,4 +65,4 @@ import React, { Component } from "react"; | ||
filterText = () => { | ||
const { data, searchKey, highlightColor } = this.props; | ||
if (this.state.searchText === "") { | ||
const { data, searchKey, highlightColor, onSearch } = this.props; | ||
if (this.state.searchText === "" || onSearch !== null) { | ||
return data; | ||
@@ -151,3 +151,3 @@ } | ||
> | ||
{this.props.searchKey.length > 0 && searchbar} | ||
{this.props.searchKey.length > 0 || onSearch !== null && searchbar} | ||
{this.props.elementBetweenSearchAndList} | ||
@@ -154,0 +154,0 @@ <FlatList |
{ | ||
"name": "react-native-complete-flatlist", | ||
"version": "1.1.35", | ||
"version": "1.1.36", | ||
"description": "An extension of React Native's Flatlist with search bar, highlighted search, pull to refresh, and etc is ready to use", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14529