NativeWind styled() regex for "tailwindCSS.experimental.classRegex"

Viewed 16

I was trying get get tailwindcss inteliisense to work with nativeWind for react native. I need regex for this

const Container = styled(
    Component,
    `my-12 h-full w-full max-w-sm flex-1 gap-4 
     items-center justify-center rounded-2xl border-2 
     border-solid border-gray-700 sm:border sm:shadow-md
  `);

Was using following config for tailwind-styled-component.

    "tailwindCSS.experimental.classRegex": [
        "tw`([^`]*)", // tw`...`
        "tw\\..+`([^`]*)", // tw.xxx<xxx>`...`
        "tw\\(.*?\\).*?`([^`]*)" // tw(Component)<xxx>`...`
    ],
0 Answers
Related