react-native-simple-grid

0.1.2 • Public • Published

react-native-simple-grid

Easy to use and full customized grid for React Native.

Installation

$ npm install react-native-simple-grid --save

Usage

import Grid from 'react-native-simple-grid';
 
<Grid
    dataSource={data.data} 
    column={2} 
    rowView={(rowData) => {
    return(
        <View  style={{flex:  1, backgroundColor:  rowData.color}}  >
        <Text>{rowData.name}</Text>
        </View>
    )
    }}
    />

Properties

Prop Description
dataSource For simplicity, dataSource is just a plain array.
column Number of column in grid.
rowView Takes an item from data and renders it into the list.
row Number of row show in screen at a time.

other properties are derived from ListView

Example

Wallpaper World

enter image description here

Package Sidebar

Install

npm i react-native-simple-grid

Weekly Downloads

3

Version

0.1.2

License

MIT

Unpacked Size

5.08 kB

Total Files

4

Last publish

Collaborators

  • bhavik_charola