@postillon/react-native-theme

2.0.1 • Public • Published

react-native-theme

An efficient and StyleSheet.create compatible theming library for React Native.

Installation

$ npm install --save react-native-theming

Usage

Create themes

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'),
];

Package Sidebar

Install

npm i @postillon/react-native-theme

Weekly Downloads

0

Version

2.0.1

License

MIT

Unpacked Size

186 kB

Total Files

10

Last publish

Collaborators

  • danielang