# @postillon/react-native-theme

> A theming library for react native

Latest version **2.0.1** (published 2018-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @postillon/react-native-theme
pnpm add @postillon/react-native-theme
yarn add @postillon/react-native-theme
bun add @postillon/react-native-theme
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2018-12-26 |
| First published | 2018-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 182 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Lang |
| Maintainers | danielang |
| Keywords | react, react-native, theme, theming |

## Links

- npm: https://www.npmjs.com/package/@postillon/react-native-theme
- Repository: https://github.com/postillonmedia/react-native-theming
- Homepage: https://github.com/postillonmedia/react-native-theming#readme
- Issues: https://github.com/postillonmedia/react-native-theming/issues
- npm.io page: https://npm.io/package/@postillon/react-native-theme

## Dependencies (1)

- [hoist-non-react-statics](https://npm.io/package/hoist-non-react-statics.md) 3.2.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2018-12-26
- 2.0.0 — 2018-12-26
- 1.2.4 — 2018-06-19
- 1.2.3 — 2018-06-19

## README

# react-native-theme
An efficient and `StyleSheet.create` compatible theming library for React Native.


## Installation
> `$ npm install --save react-native-theming`  


## Usage
### Create themes

```javascript
import { createTheme } from 'react-native-theming'

const themes = [
  createTheme({
    backgroundColor: 'white',
    textColor: 'black',
    buttonColor: 'blue',
    buttonText: 'white',
    icon: require('./icons/default.png'),
    statusBar: 'dark-content',
  }, 'Light'),
  createTheme({
    backgroundColor: 'black',
    textColor: 'white',
    buttonColor: 'yellow',
    buttonText: 'black',
    icon: require('./icons/colorful.png'),
    statusBar: 'light-content',
  }, 'Dark'),
];
```

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