Replies: 1 comment
-
|
Amazing! can't wait to use that On my end i would say the priority are View/Button/Text and any component in the drop-in replacement list (mostly because i would guess people will start with those when they switch to expo/ui so supporting them would make it extra easy)
When it comes to modifiers, i don't know enough yet about swift ui and jetpack to provide any insight into which one to map to sorry. Other than this, i think what you describe sounds already amazing to me if we can have all this on first pass. Thanks for the great works ! sorry for the lack of deep feedback, still new to expo/ui and modifiers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone 👋
We’ve started working on adding first-class Uniwind support for
@expo/ui.The goal is to make styling Expo UI components feel natural with Uniwind, while still respecting the native APIs exposed by @expo/ui across SwiftUI, Jetpack Compose, and universal components.
Initial scope
For the first version, we plan to support:
Mapping className to style and props
For example:
Would translate to something like:
Some utilities can be mapped directly to style values, while others need to become component-specific props.
Mapping colorClassName to color props
For color-only props, we’re considering dedicated class props such as colorClassName. (Like we already do for RN's components)
For example:
Would translate to:
This keeps color tokens, themes, and dark mode variants aligned with the rest of the Uniwind styling model.
Mapping classes to native modifiers
We would also like to map some classes/styles to native modifiers where that makes more sense than using regular style props.
For example:
On iOS, this could map to:
This should let us support native platform behavior while still keeping the Uniwind API ergonomic.
Variants
Everything should work with standard Uniwind variants, for example:
We want the same variant system people already use in
Uniwindto work with@expo/uicomponents as much as possible.Feedback wanted
We’d love feedback from the community before locking in the initial API.
A few questions:
If you’re already using or experimenting with
@expo/ui, we’d really like to hear what styling workflows you need most.Beta Was this translation helpful? Give feedback.
All reactions