3.4.1 • Published 4 years ago

react-native-grid-configurable v3.4.1

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Yet another grid for react native

Usage

yarn add react-native-grid-configurable

then

<Grid 
  cols={1} 
  height={70}  
  imgSrcs={[src1, src2, s3, s4, s5]} 
  titles={['A loo oo ooo ooo ooo ooo ooo ong book name','bb','bb','bb','bb']} 
  paddingBetweenRows={16}>

Options

  1. cols: How many grids a row have
  2. height: The height(pixels) of the picture row, and the width & height of the <img> tag
  3. imgSrcs: ['url1', 'url2', 'url3']
  4. titles: ['title1', 'title2', 'title3']
  5. paddingBetweenRows: Padding(pixels) between rows, default is 0
  6. callbacks: [() => {console.log('Callback of first image')}]

On different containers

Narrow

sample4

Wide

sample5

Examples

Plese check the sample folder to run the examples.

cols: 3, height: 90, paddingBetweenRows: 16, imgSrcs: [...], titles: [...]

sample1

cols: 4, height: 70, paddingBetweenRows: 16

sample2

cols: 1, height: 70, paddingBetweenRows: 16

sample3

3.4.0

4 years ago

3.4.1

4 years ago

3.3.0

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago