How to use the fela-tools.StyleSheet.create function in fela-tools

To help you get started, we’ve selected a few fela-tools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github robinweser / fela / examples / example-react-native / App.js View on Github external
import React, { Component, PropTypes } from 'react'
import { StyleSheet } from 'fela-tools'
import { Text, View } from 'react-native'

const rules = StyleSheet.create({
  container: props => ({
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',

    '@media (min-width: 200px)': {
      backgroundColor: 'yellow'
    },
    '@media (orientation: landscape)': {
      backgroundColor: 'red'
    },
    '@media (orientation: portrait)': {
      backgroundColor: 'blue'
    }
  }),
  welcome: {