Skip to content

v2.2.0

Compare
Choose a tag to compare
@nandorojo nandorojo released this 21 May 21:55
· 336 commits to master since this release

2.2.0 (2021-05-21)

New: Headless Dripsy with useSx

import { useSx } from 'dripsy'

If you want to use the sx prop with a custom component, such as from another library, try the useSx hook:

import { Button } from 'react-native-paper'

export default function HeadlessButton() {
  const sx = useSx()

  return <Button style={sx({ color: 'primary' })} />
}

The sx function will return a memoized value.