jaredh159 / tailwind-react-native-classnames

simple, expressive API for tailwindcss + react-native
2.08k stars 84 forks source link

`create` silently ignoring extend configuration for `borderWidth` #325

Open saaymeen opened 3 days ago

saaymeen commented 3 days ago

Configuring twrnc with the following config

const tw = create({
    plugins: [],
    theme: {
        extend: {
            borderWidth: { hw: 0.33 },
            width: {
                hw: 0.33,
            },
        },
    },
});

And compiling the following style console.log(tw('border-hw w-hw')), results in a style object that has only the width applied ({"width": 0.33}).

The borderWidth should be set as well.