@times-components/context

1.15.2 • 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.

/@times-components/context/

    Package Sidebar

    Install

    npm i @times-components/context

    Weekly Downloads

    6,728

    Version

    1.15.2

    License

    BSD-3-Clause

    Unpacked Size

    89.9 kB

    Total Files

    10

    Last publish

    Collaborators

    • marcincuber
    • newsuk
    • news-tools