Skip to content

Navigation Menu

Sign in
Sign up

Any plans for React Native support? #3417

Unanswered
KannarFr asked this question in Q&A
Discussion options

Hi! Astryx looks great — congrats on the open-source release.

The docs and components are clearly focused on React DOM + StyleX for the web. I'm wondering about mobile:

  • Are there any plans (short or long term) for a React Native variant of Astryx, or official guidance for using it in a React Native app?
  • If not, is sharing the theming layer (design tokens, colors, spacing, dark mode) with a React Native codebase something you'd consider supporting, so a web app on Astryx and a companion native app can stay visually consistent?

Given StyleX is compile-time CSS I understand a full RN port would essentially be a rewrite, so even a "not planned" answer or a recommended tokens-export approach would be helpful for teams with both web and native apps.

Thanks!

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

Given StyleX is compile-time CSS I understand a full RN port would essentially be a rewrite

Isn't that what rsd is for? I remember seeing stylex there as well.

You must be logged in to vote
0 replies
Comment options

Hey thanks for your interest! At the moment we're not planning to work on any React Native components. Our theming is decoupled from stylex and it gets built into a css file for the web. The way I'd imagine cross-platform styling to work is that we would have a separate build for the theme in each platform. That said we haven't tried this and realistically we may want slightly different visual considerations between platforms (ex. mobile may want larger text, larger hit areas, glasses may want dark mode only and true black backgrounds). It's an open question whether platforms should be something we encode into our themes or not.

You must be logged in to vote
1 reply
Comment options

would you consider support via RSD #3514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /