react-native-reanimated-list
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha4 • Public • Published

Reanimated List

animated FlatList implementation using react-native-reanimated

Usable with Expo!

Installation

react-native-reanimated-list expects react-native-reanimated and react-native-gesture-handler to be installed.

Open a Terminal in the project root and run:

yarn add react-native-reanimated-list

or if you use npm:

npm install react-native-reanimated-list

Usage

 
import {AnimatedList} from 'react-native-reanimated-list';
 
const Example = () => {
  /* ..rest of the code */
 
  render() {
    return (
      <View style={{flex:1}}>
        <AnimatedList
        data={payees}
        listItemHeight={100} //optional
        keyExtractor={(item, index) => item.id} //mandatory
        renderItem={({ item, index }) => (
          <View key={item.id} style={{ flex: 1 }}>
            {/*  ...code */}
          </View>
        )}
      />
    </View>)
  }
}

Props and rest of the documentation will follow soon.

Package Sidebar

Install

npm i react-native-reanimated-list

Weekly Downloads

6

Version

1.0.0-alpha4

License

MIT

Unpacked Size

17.2 kB

Total Files

12

Last publish

Collaborators

  • iamsuneeth