react-native-complete-flatlist
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -26,2 +26,3 @@ import React from 'react'; | ||
isRefreshing: false, | ||
isLoading: false, | ||
renderItem: null, | ||
@@ -127,2 +128,3 @@ renderSeparator: () => <View style={styles.defaultSeparator} />, | ||
isRefreshing, | ||
isLoading, | ||
backgroundStyles, | ||
@@ -181,4 +183,4 @@ searchBarBackgroundStyles, | ||
refreshControl={ | ||
!!onSearch ? <RefreshControl refreshing={isRefreshing} onRefresh={() => onSearch(searchText)} /> | ||
: !!pullToRefreshCallback && <RefreshControl refreshing={isRefreshing} onRefresh={pullToRefreshCallback} /> | ||
!!onSearch ? <RefreshControl refreshing={isRefreshing || isLoading} onRefresh={() => onSearch(searchText)} /> | ||
: !!pullToRefreshCallback && <RefreshControl refreshing={isRefreshing || isLoading} onRefresh={pullToRefreshCallback} /> | ||
} | ||
@@ -185,0 +187,0 @@ data={filteredData} |
{ | ||
"name": "react-native-complete-flatlist", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"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", |
@@ -90,3 +90,3 @@ # react-native-complete-flatlist | ||
| `pullToRefreshCallback` | function | Callback function when user pull to refresh | null | Optional (Pull to refresh will not be available if this is not supplied | | ||
| `isRefreshing` | boolean | if true, the loading will be shown on top of the list. Can only be used if prop `pullToRefreshCallback` not null | false | Optional | | ||
| `isLoading` | boolean | if true, the loading will be shown on top of the list. Can only be used if prop `pullToRefreshCallback` not null | false | Optional | | ||
| `renderItem` | function that return a JSX element (Just like RN's ListView and FlatList) | Template of a row in the Flat List | null (open for PR if anyone wish to make default template for this) | Required (since I dont do default template yet) | | ||
@@ -93,0 +93,0 @@ | `renderSeparator` | function that return a JSX element to be rendered between rows(Just like RN's ListView and FlatList) | Template of separator in the Flat List | a thin line | 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
23485
207