2.0.1 • Published 6 years ago

@postillon/react-native-theme v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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