FormidableLabs / react-native-zephyr

TailwindCSS-inspired styling library for React Native.

Home Page:https://formidable.com/open-source/react-native-zephyr/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web support?

slorber opened this issue · comments

Hi

As the editor of ThisWeekInReact.com newsletter (featuring your lib this week), the first question that came to me is: what about web support? Is this lib usable in a cross-platform way? I think it's worth mentioning that in the doc, particularly when there are alternatives that focus on cross-platform.

https://twitter.com/sebastienlorber/status/1541820495603064832

Hi @slorber! Thanks for stopping by and checking Zephyr out. And thanks for bringing this up, we really do need to make this more clear in our documentation.

When developing Zephyr, we focused primarily on the cross-platform mobile use-case, but it does support React Native web out of the box (just by the nature of using React Native). Example image below from a little throw-around example I built for mobile, but actually works in web as well.

(Apologies for missing your tweet, I'm pretty inactive on Twitter and really need to get caught up 😅 )

image

Thanks, I see :)

As a cross-platform enthusiast, knowing also how it works is useful. What I understand is that it works through React-Native-Web.