styled-react-native

1.0.1 • Public • Published

Styled react native components

For easy styling of react native components and its style composition

Usage

  import styled from 'styled-react-native'
  import { Text } from 'react-native'

  const Headline = styled(Text)(() => {
    return {
      fontSize: 20,
      textAlign: 'center',
      margin: 10
    }
  })

  const BoldHeadline = styled(Headline)(() => {
    return {
      fontWeight: 'bold'
    }
  })

or

  import styled from 'styled-react-native'
  import { Text } from 'react-native'

  const Headline = styled(Text)
  <Headline {...{style: {color: 'red'}}} />

/styled-react-native/

    Package Sidebar

    Install

    npm i styled-react-native

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.67 kB

    Total Files

    3

    Last publish

    Collaborators

    • jsifalda