JSPM

react-native-brick-list

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

Grid list with wrap content width

Package Exports

  • react-native-brick-list

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-brick-list) 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-brick-list

Getting started

$ npm install react-native-brick-list --save Or $ yarn add react-native-brick-list

Usage

import BrickList from 'react-native-brick-list';

<BrickList
    data={this.props.data}
    renderItem={(item) => (
        <View key={item.id} style={{ margin: wp('0.2%'), flex: 1, backgroundColor: Color.BACKGROUND_CARD, padding: wp('0.2%') }}>
            <FastImage resizeMode={FastImage.resizeMode.cover} style={{ height: '100%', width: '100%', resizeMode: 'cover' }} source={{ uri: item.url }} />
        </View>
    )}
    columns={3}
/>