react-native-complete-flatlist
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -182,3 +182,3 @@ import React from 'react'; | ||
!!onSearch ? <RefreshControl refreshing={isRefreshing || isLoading} onRefresh={() => onSearch(searchText)} /> | ||
: !!pullToRefreshCallback && <RefreshControl refreshing={isRefreshing || isLoading} onRefresh={pullToRefreshCallback} /> | ||
: <RefreshControl refreshing={isRefreshing || isLoading} onRefresh={pullToRefreshCallback} /> | ||
} | ||
@@ -185,0 +185,0 @@ data={filteredData} |
{ | ||
"name": "react-native-complete-flatlist", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"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 | | ||
| `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 | | ||
| `isLoading` | boolean | if true, the loading will be shown on top of the list. | 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 | |
23458