rn-grid-layout

1.0.22 • Public • Published

react-native-grid

easy to use grid layout in react-native

Installation

npm install rn-grid-layout

Usage with col (for uniform grid)

import Grid from 'rn-grid-layout';

<Grid col={3} space={12}>
  //- your components
</Grid>;

Usage with template (for un-uniform grid)

import Grid from 'rn-grid-layout';

<Grid template={[1, 2]} space={12}>
  //- your components
  <View></View> //- first component
  <View></View> //- double width of first component
</Grid>;

License

ISC

Package Sidebar

Install

npm i rn-grid-layout

Weekly Downloads

1

Version

1.0.22

License

ISC

Unpacked Size

3.05 kB

Total Files

4

Last publish

Collaborators

  • kyawmyohtut96