# react-native-grid-view-dank

> React Native`s ListView but with grid setup.

Latest version **0.1.0** (published 2017-05-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-grid-view-dank
pnpm add react-native-grid-view-dank
yarn add react-native-grid-view-dank
bun add react-native-grid-view-dank
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2017-05-26 |
| First published | 2017-05-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | stoffern |
| Maintainers | danielkermode |

## Links

- npm: https://www.npmjs.com/package/react-native-grid-view-dank
- Repository: https://github.com/stoffern/react-native-grid-view
- Homepage: https://github.com/stoffern/react-native-grid-view#readme
- Issues: https://github.com/stoffern/react-native-grid-view/issues
- npm.io page: https://npm.io/package/react-native-grid-view-dank

## Dependencies (1)

- [react-native-sglistview](https://npm.io/package/react-native-sglistview.md) ^0.4.3

## Recent versions

- 0.1.0 (latest) — 2017-05-26

## README

# react-native-grid-view
React Native`s ListView but with grid setup.

## Props

- `renderItem`: **required ** content to render items
- `dataSource`: **required ** an array of items that should be listed, standard dataSource format.
- `imagesPerRow`: optional input to set the amout of items pr row (Default: 3)
- `imageMargin`: optional input to set margins in the view  (Default: 5)
- `backgroundColor`: optional input to set background color (Default: black)

## Usage Examples

```js
var GridView = require("react-native-gridview");
// or
import GridView from "react-native-gridview"
```

```javascript
render(){
  return(
    <GridView
      renderItem={data => this.renderItem(data)}
      dataSource=[1,2,3,4,5]
      imagesPerRow={4}
      imageMargin={5}
      backgroundColor="white"
    />
  )
}
renderItem(data){
  return(
    <View onPress={console.log('clicked')}>
      <Text>{data}</Text>
    </View>
  )
}
```

---
_Source: https://npm.io/package/react-native-grid-view-dank · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
