-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Intellisense in TailwindCSS React Native tailwind() function 馃檹 #132
Comments
Hey @tommulkins. I think tailwindlabs/tailwindcss#7553 would cover this |
Until tailwindlabs/tailwindcss#7553 is done, getting intellisense working in React Native with function withTailwind(Component) {
function ComponentWithTailwind({ className, style, ...rest }) {
const classes = className
? Array.isArray(className)
? className.flat().filter(Boolean).join(" ")
: className
: "";
return <Component style={[tailwind(classes), style && style]} {...rest} />;
}
ComponentWithTailwind.displayName = `withTailWind(${getDisplayName(
Component
)})`;
return ComponentWithTailwind;
} (More details here: https://www.jumoel.com/posts/tailwind-react-native-classnames) |
+1 for this, please add tailwind-rn support |
+1 |
@realmichaelye @harshjadon9 this worked for me: tailwindlabs/tailwindcss#7554 (comment) |
How great would it be if we could also have intellisense inside the
tailwind()
function provided by https://github.com/vadimdemedes/tailwind-rn package?For example,
Any plans to include this too by any chance? 馃槃
The text was updated successfully, but these errors were encountered: