react-native-complete-flatlist
Advanced tools
Comparing version 1.1.18 to 1.1.19
12
index.js
@@ -21,5 +21,7 @@ import React, { Component } from "react"; | ||
componentDidMount() { | ||
if (this.props.pullToRefreshCallback !== null) { | ||
this.props.pullToRefreshCallback(); | ||
constructor(props) { | ||
super(props) | ||
const { refreshOnLoad = true, pullToRefreshCallback } = props | ||
if (pullToRefreshCallback !== null && refreshOnLoad) { | ||
pullToRefreshCallback(); | ||
} | ||
@@ -135,4 +137,4 @@ } | ||
filteredData.length === 1 && | ||
filteredData[0].showEmptyRow !== null && | ||
typeof filteredData[0].showEmptyRow !== "undefined" | ||
filteredData[0].showEmptyRow !== null && | ||
typeof filteredData[0].showEmptyRow !== "undefined" | ||
? this.props.renderEmptyRow() | ||
@@ -139,0 +141,0 @@ : renderItem(item.item) |
{ | ||
"name": "react-native-complete-flatlist", | ||
"version": "1.1.18", | ||
"version": "1.1.19", | ||
"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", |
@@ -82,2 +82,3 @@ # react-native-complete-flatlist | ||
|`searchKey`|array of string|This should be name of keys available in data which will be use to search|null|Optional (if not supplied, search field will not appear)| | ||
|`elementBetweenSearchAndList`|JSX element|What to render between searchbar and the list|null|Optional| | ||
|`elementBetweenSearchAndList`|JSX element|What to render between searchbar and the list|null|Optional| | ||
|`refreshOnLoad`|boolean|If yes, prop `pullToRefreshCallback` will be called if available|true|Optional| |
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
12148
200
83