JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 88
  • Score
    100M100P100Q78317F
  • License MIT

A ListView for React Native that's compatible with Immutable data

Package Exports

  • react-native-immutable-list-view

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-immutable-list-view) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Native Immutable ListView

A ListView for React Native that's compatible with Immutable data.

Setup

npm install --save react-native-immutable-list-view

Usage

import ImmutableListView from 'react-native-immutable-list-view';

ImmutableListView supports all the props of ListView, but instead of passing in a dataSource, you should should pass in a prop called immutableData containing the data you'd like to display. ImmutableListView will handle creating an efficient dataSource for you.

Other than this small change, everything else will be exactly the same as ListView. An example is coming shortly.

Note: Currently only Maps and Lists are supported, but that will be fixed shortly. Feel free to submit a PR!

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D