stili
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

stili

Style normalizer for creating universal React/React Native components.

Install

$ yarn add stili

Usage

normalizeWebStyle(style: TStyle) => TCssWebProps
normalizeNativeStyle(style: TStyle) => TCssNativeProps
  • TStyle – normalized styles
  • TCssWebProps – web specific styles
  • TCssNativeProps – native specific styles

In web file

import { normalizeWebStyle } from 'stili'

normalizeWebStyle({ lineHeight: 16 })
// field target: { lineHeight: '16px' }

In native file

import { normalizeNativeStyle } from 'stili'

normalizeNativeStyle({ lineHeight: 16 })
// field target: { lineHeight: 16 }

Readme

Keywords

none

Package Sidebar

Install

npm i stili

Weekly Downloads

9

Version

3.1.0

License

MIT

Unpacked Size

45.8 kB

Total Files

28

Last publish

Collaborators

  • julia.spehrer
  • ijigg
  • deepsweet
  • xaviervia
  • psxcode
  • irminakacz
  • fosimus
  • atilaz
  • moria.am
  • gideon.gur