All Projects → rundmt → React Native Flexbox Grid

rundmt / React Native Flexbox Grid

Licence: mit
Responsive Grid for React Native

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Flexbox Grid

Shuffle
Categorize, sort, and filter a responsive grid of items
Stars: ✭ 2,170 (+2184.21%)
Mutual labels:  layout, grid, responsive
React Native Responsive Grid
Bringing the Web's Responsive Design to React Native
Stars: ✭ 369 (+288.42%)
Mutual labels:  layout, grid, responsive
Flex Layout
Provides HTML UI layout for Angular applications; using Flexbox and a Responsive API
Stars: ✭ 5,705 (+5905.26%)
Mutual labels:  layout, grid, responsive
Grid
This package has moved and renamed
Stars: ✭ 2,079 (+2088.42%)
Mutual labels:  layout, grid, responsive
react-super-styled
Responsive JSX layouts with Styled Components
Stars: ✭ 77 (-18.95%)
Mutual labels:  grid, responsive, layout
bootstrap-grid-ms
Missing grid range in Bootstrap 3, micro-small from 480-767px.
Stars: ✭ 34 (-64.21%)
Mutual labels:  grid, responsive, layout
griding
🧱 lean grid & responsive for react
Stars: ✭ 18 (-81.05%)
Mutual labels:  grid, responsive, layout
Easygrid
EasyGrid - VanillaJS Responsive Grid
Stars: ✭ 77 (-18.95%)
Mutual labels:  layout, grid, responsive
Re Flex
Resizable Flex layout container components for advanced React web applications
Stars: ✭ 349 (+267.37%)
Mutual labels:  layout, responsive
Waterfall.js
Tired of use creepy hacks or heavy ways to get a Grid based on Pinterest?
Stars: ✭ 458 (+382.11%)
Mutual labels:  layout, grid
Svelte Grid
A responsive, draggable and resizable grid layout, for Svelte.
Stars: ✭ 473 (+397.89%)
Mutual labels:  layout, grid
Pintsize
Customisable 💪 Flexbox grid system
Stars: ✭ 330 (+247.37%)
Mutual labels:  grid, flexbox-grid
React Flexview
A powerful React component to abstract over flexbox and create any layout on any browser
Stars: ✭ 276 (+190.53%)
Mutual labels:  layout, grid
gutter-grid
A Sass flexbox based grid system that is able to replicate CSS grid-gap in IE11
Stars: ✭ 18 (-81.05%)
Mutual labels:  grid, responsive
Egjs Infinitegrid
A module used to arrange card elements including content infinitely on a grid layout.
Stars: ✭ 751 (+690.53%)
Mutual labels:  layout, grid
gymnast
🤸 Configurable grid and layout engine for React
Stars: ✭ 35 (-63.16%)
Mutual labels:  grid, layout
Waffle Grid
An easy to use flexbox grid system.
Stars: ✭ 602 (+533.68%)
Mutual labels:  flexbox-grid, responsive
Ungrid
ungrid - the simplest responsive css grid
Stars: ✭ 1,292 (+1260%)
Mutual labels:  grid, responsive
Atgrid.css
CSS Grid System with attribute selectors
Stars: ✭ 37 (-61.05%)
Mutual labels:  grid, flexbox-grid
React Native Super Grid
Responsive Grid View for React Native
Stars: ✭ 971 (+922.11%)
Mutual labels:  grid, responsive

Flexbox Grid

A Set of React Native Components to make a grid easier to reason about.

The Problem

Responsive Design is easy on the web but a bit harder on a mobile app.

I'm experimenting with using a CSS type grid to have conditional looks based on device width similar to media queries.

Getting Started

Installation

In your react native project

npm install react-native-flexbox-grid

Import

import {Column as Col, Row} from 'react-native-flexbox-grid';

Basic Example

<View style={styles.container}>        
  <Row size={12}>
    <Col sm={6} md={4} lg={3}>
      <Text>
        First Column
      </Text>
    </Col>
    <Col sm={6} md={4} lg={3}>
      <Text>
        Second Column
      </Text>
    </Col>
  </Row>      
</View>

The api is inspired by react-flexbox-grid, but it is not exactly the same.

The main difference is you can specify the grid size. By default <Row> is a size of 12. However if you want you can make a <Row> any size you want.

More Documentation

Documentation

Changes for 0.3.0

React Native now supports percentages as of 0.42. All of our versions going forward will rely on percentages. It has much faster performance compared to what we did before when we relied on onLayout. The API for apps is the same. There should be no difference in expected output of your app.

Changes for 0.2.0

As of 0.2.0 Row will automatically wrap components. If you do not want components to automatically wrap you must specify nowrap in the row's prop.

  <Row size={12} nowrap>

Known Issues

For react-native 0.41 and earlier you muse use [email protected] or earlier.

Since React Native before 0.41 and earlier doesn't support percentages we have to rely on using React Native's onlayout to pass the width of the parent to the child. This causes layouts to be a bit slow, because the child has to wait for the parent to layout and then rerender. This problem is resolved by using react native 0.42 and the [email protected] or later.

What's working

  • Basic Grid
  • Styles
  • Hiding Items
  • Basic Unit Testing

To Do

  • Integration Testing. (Possibly New Examples Repo)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].