0.0.4 • Published 3 years ago

react-native-flat-grid v0.0.4

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

React native Flat List Grid

For example usage you can see here.

Quickstart

yarn add react-native-flat-grid

Using

import FlatGridList from 'react-native-flat-grid';

const LIST = [
  { id: 1 },
  { id: 2 },
  { id: 3 },
  { id: 4 },
  { id: 5 },
  { id: 6 },
  { id: 7 },
  { id: 8 }
];

<FlatGridList
  data={LIST}
  numColumns={2}
  renderItem={({ item, index }, itemStyle) => {
    return (
      <View style={itemStyle}>
        <Text>{item.id}</Text>
      </View>
    )
  }}
/>
0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago