Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Releases: z0al/react-native-styled.macro

v0.12.0

16 May 19:36
0876893
Compare
Choose a tag to compare

0.12.0 (2021-05-16)

Features

v0.11.0

05 Jan 06:35
d33c98d
Compare
Choose a tag to compare

0.11.0 (2021-01-05)

Features

v0.10.0

04 Jan 18:38
907078b
Compare
Choose a tag to compare

0.10.0 (2021-01-04)

Features

  • 💅: support h-full style (907078b), closes #67

v0.9.0

01 Jan 09:59
aeccddb
Compare
Choose a tag to compare

0.9.0 (2021-01-01)

Features

  • styled now accept strings too (aeccddb)

v0.8.3

29 Nov 17:20
Compare
Choose a tag to compare

0.8.3 (2020-11-29)

Bug Fixes

  • correct rem import path (a601c70)

v0.8.2

29 Nov 16:53
Compare
Choose a tag to compare

0.8.2 (2020-11-29)

Bug Fixes

  • handle loadPackageJson is not a function (4338554)

v0.8.1

29 Nov 16:30
Compare
Choose a tag to compare

0.8.1 (2020-11-29)

Bug Fixes

  • typing: reduce Token type complexity (84f9081)

v0.8.0

29 Nov 16:00
Compare
Choose a tag to compare

0.8.0 (2020-11-29)

Bug Fixes

  • correctly handle style props (5873ac9)

Features

  • improve typing 🔥 (e66b582)
  • support nested variants 🔥 (a67767d)

v0.7.1

26 Nov 10:11
Compare
Choose a tag to compare

0.7.1 (2020-11-26)

Performance Improvements

  • macro: faster Rem value transformation (c9494f3)

v0.7.0

22 Nov 14:30
Compare
Choose a tag to compare

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