1.0.27 • Published 2 years ago

@sklink/react-native-responsive-layout v1.0.27

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

React Native / Web Responsive Layout

When developing a project that considers both React Native and React Web as first-class experiences, it's helpful to have tools that react different sizes of windows, both on load and when resized.

This package aims to replicate tools that the Material UI library has provided, while working for both React Native and React Web.

These components have been replicated here:

Container; a wrapper that centers your content horizontally. It's the most basic layout element.

Grid; a responsive layout grid that adapts to screen size and orientation, ensuring consistency across layouts.

Stack; though not explicitly for responsive layout, Stack is a simple way to manage the layout of immediate children along the vertical or horizontal axis with optional spacing and/or dividers between each child.

Expo Snack app

Room for improvement

  • Breakpoints are hard-coded within this package. These should be exposed for configuration.
  • spacing accepts a multi-breakpoint configuration on MUI, where we're only accepting a single value
1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago