0.1.1 • Published 3 years ago

react-native-vision-list v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Documentation

TODO: Add documentation

Features

  • Fully native cell virtualization
  • Synchronous cell rendering and reparenting powered by Fabric and JSI
  • Drop-in replacement for FlatList
  • Fast mount, re-render and scrolling

See the example app

Example

function ContactCell(props) {
  return (
    <View style={styles.cell}>
      <Image source={props.contact.image} />
      <Text>{props.contact.displayName}</Text>
    </View>
  )
}

function App() {
  const contacts = useContactBook()

  return (
    <VisionList
      items={contacts}
      renderItem={(c) => <ContactCell contact={c} />}
    />
  )
}

Sponsored by

VisionList is powered by Margelo.