jaredh159 / tailwind-react-native-classnames

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

Add intellisense instructions to readme #228

Closed jxxe closed 1 year ago

jxxe commented 1 year ago

I added a brief note about VS Code intellisense (see #124)

jxxe commented 1 year ago

Here's a preview:

image
jaredh159 commented 1 year ago

hey, appreciate the PR, i think documenting intellisense in the readme is a good idea.

question though -- seems like most of the examples over in #124 reference the tw identifier somehow, but your recommended simplest way only references style. will this work for most use cases? i'm a bit out of my depth here, because i don't use vscode, and i'm actually not currently actively working on any project that uses twrnc.

jxxe commented 1 year ago

I modified the instructions to include both. Using the style attribute is more complete (?) but also less precise. The regex solution is more precise but less complete, if that makes any sense. Using both provides a pretty good balance.

jaredh159 commented 1 year ago

excellent, thanks so much, merging. appreciate it. 👍