Skip to content

Conversation

visormatt
Copy link

Overview

This PR is a quick stab at expanding the JSX attributes to include style for use in React Native. The use-case behind this is TailwindCSS is great and this plugin automates another standard that we would otherwise have to debate at some point. But, it doesn't yet support react native.

Hoping you're open to the idea and thanks for the killer 💯 plugin 🔌

@adamwathan
Copy link
Member

Hey! I think we're going to hold off on this for now since we don't have a React Native library — if we ever actually support React Native then I think we can revisit 👍

@adamwathan adamwathan closed this Sep 26, 2022
@visormatt
Copy link
Author

@adamwathan no worries at all. For context, right now I am using tailwind-rn in combination with this and its working pretty great. Easy enough to patch it in short term though, thanks again for the killer work!

@luispuig
Copy link

I think is becoming more common. The tailwind plugin has a config for the HTML attributes accepted. Could it be used or have one for the prettier-plugin?

@visormatt
Copy link
Author

@luispuig I've patched it with patch-package in the meantime, might be helpful for you as well.

@luispuig
Copy link

Nice! do you mind sharing the patch file and the script tag, please? thanks. I'd like to test it

@visormatt
Copy link
Author

@luispuig our build tools are setup to patch it during the npm install phase using the patch-package functionality, so there is not script to reference unfortunately as we compile the code.

@luispuig
Copy link

Thanks, I'll try it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants