New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-infinite-scroll-grid

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-infinite-scroll-grid

React Native infinite scroll grid component

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-native-infinite-scroll-grid

Features

  • Pull to refresh
  • Scroll to load more
  • Multi-column
    • Easy to set internal/external margins of grid
    • Avoid FlatList's layout bug that sets wrong width to the last row item (cf. stackoverflow)
2 column3 column

Usage

Similar to FlatList.

example

<Grid
  numColumns={3}
  data={this.state.data}
  keyExtractor={item => item.id.toString()}
  renderItem={info => this.renderItem(info)}
  onRefresh={() => this.onRefresh()}
  refreshing={this.state.refreshing}
  onEndReached={() => this.onEndReached()}
  loadingMore={this.state.loadingMore}
  marginExternal={4}
  marginInternal={4}
/>

For details, see demo directory.

Development

How to run demo application

git clone git@github.com:morishin/react-native-infinite-scroll-grid.git
cd react-native-infinite-scroll-grid
yarn install
yarn run build-for-demo:watch
cd demo
yarn install
yarn run start

After the above steps, you can launch demo app on your device via expo. The app reloads automatically when the source code has changed.

Keywords

FAQs

Package last updated on 06 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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