@times-components/responsive

0.21.5 • Public • Published

Responsive

This package includes utilities for supporting responsive layouts for native platforms. It provides a wrapper component called which listens to orientation changes and provides layout information through context named ResponsiveContext. Any child component can then use this layout information by consuming ResponsiveContext.

On web, it just passes the screenWidth through the context and does not include any orientation listeners.

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

Testing can be done on each platform individually

yarn test:web

Package Sidebar

Install

npm i @times-components/responsive

Weekly Downloads

6,096

Version

0.21.5

License

BSD-3-Clause

Unpacked Size

73 kB

Total Files

9

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools