@times-components/context

1.15.1 • Public • Published

Context

Provides context capabilities by utilising React's Context API.

This package should be used to create app-wide shared components, such as themes or shared callbacks.

(See https://reactjs.org/docs/context.html on when to use context and when to avoid)

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

Future

More theme properties will be added in the future, such as the section colours, that will be defined by the apps' current navigation state.

Readme

Keywords

Package Sidebar

Install

npm i @times-components/context

Weekly Downloads

4,088

Version

1.15.1

License

BSD-3-Clause

Unpacked Size

89.7 kB

Total Files

10

Last publish

Collaborators

  • marcincuber
  • newsuk
  • news-tools