React Native Styled.macro Versions Save

⚛️ A Utility-First Styling Library for React Native

v0.12.0

3 years ago

0.12.0 (2021-05-16)

Features

v0.11.0

3 years ago

0.11.0 (2021-01-05)

Features

v0.10.0

3 years ago

0.10.0 (2021-01-04)

Features

v0.9.0

3 years ago

0.9.0 (2021-01-01)

Features

  • styled now accept strings too (aeccddb)

v0.8.3

3 years ago

0.8.3 (2020-11-29)

Bug Fixes

  • correct rem import path (a601c70)

v0.8.2

3 years ago

0.8.2 (2020-11-29)

Bug Fixes

  • handle loadPackageJson is not a function (4338554)

v0.8.1

3 years ago

0.8.1 (2020-11-29)

Bug Fixes

  • typing: reduce Token type complexity (84f9081)

v0.8.0

3 years ago

0.8.0 (2020-11-29)

Bug Fixes

  • correctly handle style props (5873ac9)

Features

v0.7.1

3 years ago

0.7.1 (2020-11-26)

Performance Improvements

  • macro: faster Rem value transformation (c9494f3)

v0.7.0

3 years ago

0.7.0 (2020-11-22)

Features

  • support static expressions as arguments (79ab202)

    We are now using babel-helper-evaluate-path (the same package used by plugins like babel-plugin-minify-constant-folding) to statically evaluate the first argument passed to styled. That means it's now possible to write something like this:

    const bgWhite = 'bg-white'
    const style = [bgWhite, 'text-black']
    
    styled(style)
    

    Template literals and other simple expressions also work.

    Please note that object properties still don't work e.g.

    const styles = {
        text: ['text-base']
    }
    
    styled(styles.text) // will throw an error