FormidableLabs / react-native-zephyr

TailwindCSS-inspired styling library for React Native.
https://formidable.com/open-source/react-native-zephyr/
MIT License
345 stars 5 forks source link

[Question] Why array instead of string? #39

Open NandoMB opened 1 year ago

NandoMB commented 1 year ago

There are a reason to send an array as the custom style? Why not parse a string splitting by "space character"? Just a curious question...

Actual:

classes={["flex:1", "bg:purple-100", "justify:center", "items:center"]}

Propose:

classes="flex:1 bg:purple-100 justify:center items:center"
DeVoresyah commented 1 year ago

hi, if you're looking styles library that's the syntax similar to TailwindCSS. You can check https://osmicsx.dev/