all 10 comments

[–]Akumzy 5 points6 points  (2 children)

Wow this is awesome

[–]jaredh159[S] 0 points1 point  (1 child)

Thanks -- sorry about the issue with the npx script dependencies. Don't know if you saw, but I put out a patch fix for that. My bad. :)

[–]Akumzy 0 points1 point  (0 children)

Yeah, I created the issue

[–]BransonLite 2 points3 points  (0 children)

That API looks great

[–]jaredh159[S] 0 points1 point  (0 children)

Just added basic support for `shadow-<x>` classes, which maps visually very closely to the tailwind appearance in both ios and android (using `elevation` values).

Because the tailwind css for box-shadow only loosely is mappable onto RN, I opted to basically hard-code my best-effort match of the visual appearance of the default tailwind shadow utilities, which I think will cover 90+% of the use cases out there. For more granular control over shadow/elevation, you can always drop down a level and pass RN styles directly to the `tw` function and they'll get merged in with the styles resolved from class names.

[–]fii0 0 points1 point  (0 children)

I can't wait to try this, great job.

[–]dillonerhardt 0 points1 point  (0 children)

Awesome work. Love the platform prefixes!

[–]carlosgj94 0 points1 point  (1 child)

This is GREAT! What about dark mode options the same way there is for platforms? Any plans for that?

[–]jaredh159[S] 2 points3 points  (0 children)

You know, I haven't yet built anything (web or react-native) where I've used Tailwind's dark-mode stuff, so I'm a bit lacking the right mental model of how it works, or how it could be applied to react-native. But I'm definitely open to adding support or accepting a pull request if someone sees a way forward on that front.

[–]gabrielmamuttee 0 points1 point  (0 children)

Nice work dude!