Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-complete-flatlist

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-complete-flatlist - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

6

index.js

@@ -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 |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc