1.0.3 • Published 5 years ago

react-native-brick-list v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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}
/>