All Projects → nickcharles → react-native-invertible-flatlist

nickcharles / react-native-invertible-flatlist

Licence: MIT license
[DEPRECATED] A FlatList that can be flipped.

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to react-native-invertible-flatlist

react-native-alphabetflatlist
A Flatlist with alphabet sidebar.
Stars: ✭ 37 (+117.65%)
Mutual labels:  flatlist
React Native Largelist
The best large list component for React Native.
Stars: ✭ 2,153 (+12564.71%)
Mutual labels:  flatlist
react-native-swipe-list
Swipeable FlatList Component for react-native
Stars: ✭ 22 (+29.41%)
Mutual labels:  flatlist
RNApp
react native app
Stars: ✭ 43 (+152.94%)
Mutual labels:  flatlist
react-native-bidirectional-infinite-scroll
📜 React Native - Bidirectional Infinite Smooth Scroll
Stars: ✭ 137 (+705.88%)
Mutual labels:  flatlist
react-native-dual
ScrollView, FlatList, SectionList and ListView with dual background
Stars: ✭ 28 (+64.71%)
Mutual labels:  flatlist
react-native-pullview
scrollview&&FlatList Pull refresh and loadmore
Stars: ✭ 26 (+52.94%)
Mutual labels:  flatlist
react-native-timeline-feed
Customisable timeline for react native (using FlatList). Docs: https://johan-dutoit.github.io/react-native-timeline-feed/
Stars: ✭ 43 (+152.94%)
Mutual labels:  flatlist
react-native-animated-flatlist
Animated Flatlist for React-Native
Stars: ✭ 56 (+229.41%)
Mutual labels:  flatlist
parserz
A purely-functional library for creating both parsers, pretty-printers, and grammar definitions from a single, type-safe specification of a grammar
Stars: ✭ 68 (+300%)
Mutual labels:  invertible

NOTICE: This package is now deprecated. As of React Native 0.47 the FlatList component supports inversion natively. Please use the native capabilities for future development.

InvertibleFlatList

An invertible FlatList for React Native.

This is the updated and renamed version of react-native-invertible-flat-list. That package is out of date and unmaintained. Please use this version going forward.

Installation

npm:

npm install --save react-native-invertible-flatlist

yarn:

yarn add react-native-invertible-flatlist

Import the component in your source as follows:

import { InvertibleFlatList } from 'react-native-invertible-flatlist';

Behavior

Behaves identically to the React Native FlatList component with the added functionality of being invertible. The classic example of this is a chat application where the most recent items are listed at the very bottom of a scrolling list that takes the user back in time. This works for both vertically scrolling and horizontally scrolling lists.

Usage

Minimal example:

<InvertibleFlatList
  inverted
  data={[{key: 'a'}, {key: 'b'}]}
  renderItem={({item}) => <Text>{item.key}</Text>}
/>

Props

FlatList props...

inverted?: ?boolean

Inverts the scrolling direction of the list.

Methods

FlatList methods...

Testing

If you want to test the implementation or just see a working example, this project comes with an example project out of the box. Once you clone, move into the test directory and run the following commands:

yarn install
yarn run ios

Development

The best way to do local development is to clone this project and install the package as a local dependency in your project. See the test project in this repository for an example of how to do this.

Known Issues

  • ListHeaderComponent and ListFooterComponent do not properly invert the content that is passed to them. This is because these properties can accept a React Component Class, a render function, or a rendered element. Because React Native now supports inversion natively, the amount of effort required to implement this properly doesn't equate with the convenience of these working perfectly. You'll need to apply the y-axis scale inversion to these components yourself before passing them to InvertibleFlatList.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].