# react-native-bpk-theming

> Backpack React Native theming utlities.

Latest version **2.0.1** (published 2020-02-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install react-native-bpk-theming
pnpm add react-native-bpk-theming
yarn add react-native-bpk-theming
bun add react-native-bpk-theming
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2020-02-26 |
| First published | 2017-10-02 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 45 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 543 |
| Author | Backpack Design System |
| Maintainers | georgegillams, k0nserv, ojcurt, shaundon, tiagohngl |

## Links

- npm: https://www.npmjs.com/package/react-native-bpk-theming
- Repository: https://github.com/Skyscanner/backpack
- Homepage: https://github.com/Skyscanner/backpack#readme
- Issues: https://github.com/Skyscanner/backpack/issues
- npm.io page: https://npm.io/package/react-native-bpk-theming

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [theming](https://npm.io/package/theming.md) ^1.1.0

## Recent versions

- 2.0.1 (latest) — 2020-02-26
- 1.0.85-beta.11 (canary) — 2018-11-23
- 2.0.0 — 2020-02-19
- 1.4.15 — 2020-02-13
- 1.4.14 — 2020-01-30
- 1.4.13 — 2020-01-22
- 1.4.12 — 2020-01-20
- 1.4.11 — 2019-12-17
- 1.4.10 — 2019-12-12
- 1.4.9 — 2019-11-29
- 1.4.8 — 2019-11-26
- 1.4.7 — 2019-11-12
- 1.4.6 — 2019-10-10
- 1.4.5 — 2019-10-01
- 1.4.4 — 2019-09-19
- … 107 more at https://npm.io/package/react-native-bpk-theming/versions

## README

# react-native-bpk-theming

> Backpack React Native theming utilities.

## Installation

```sh
npm install react-native-bpk-theming --save-dev
```

## Usage

```js
import { Component } from 'react';
import { View } from 'react-native';
import BpkThemeProvider from 'react-native-bpk-theming';
import BpkButton from 'react-native-bpk-component-button';

const theme = {
  buttonPrimaryGradientStartColor: '#fce134',
  buttonPrimaryGradientEndColor: '#f8c42d',
  buttonPrimaryTextColor: '#2d244c',
  buttonSecondaryBackgroundColor: '#fff',
  buttonSecondaryTextColor: '#2d244c',
  buttonSecondaryBorderColor: '#2d244c',
  buttonLinkTextColor: '#fce134',
};

export default class App extends Component {
  render() {
    return (
      <BpkThemeProvider theme={theme}>
        <BpkButton type="primary" title="Book flight" onPress={() => {}} />
        <BpkButton type="secondary" title="Book flight" onPress={() => {}} />
      </BpkThemeProvider>
    );
  }
}
```

## Props

| Property            | PropType  | Required | Default Value |
| -----------         | --------- | -------- | ------------- |
| children            | node      | true     | -             |
| theme               | object    | true     | -             |

---
_Source: https://npm.io/package/react-native-bpk-theming · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
