@react-web/stylesheet
TypeScript icon, indicating that this package has built-in type declarations

0.2.6 • Public • Published

@react-web/stylesheet

Install

→ npm i @react-web/stylesheet 

API

  • StyleSheet.create(styleMap: Object) styles: object
  • StyleSheet.assign(styleList | styleMap) prefixedStyle: object
  • StyleSheet.flatten(nestedStyleList: Array): styleList: Array

Example:

import { StyleSheet, View } from 'react-bucket'

const styles = StyleSheet.create({
  btn: {
    height: 36,
    textAlign: 'center'
  },
  btn_red: {
    backgroundColor: '#F33'
  }
})

ReactDOM.render(
  <View style={[styles.btn, styles.btn_red]}>Click Me!</View>
)

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @react-web/stylesheet

Weekly Downloads

0

Version

0.2.6

License

MIT

Unpacked Size

4.17 kB

Total Files

7

Last publish

Collaborators

  • heineiuo