v2.2.0
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.