Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for universal Expo and Expo Web with react-strict-dom #5

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

javascripter
Copy link
Owner

@javascripter javascripter commented Aug 19, 2024

Why

NanoCSS can be configured to support react-strict-dom for Expo Web fully with Expo on iOS and Android using the original implementation without any complicated bundler config.

Expo Web traditionally had trouble setting up react-strict-dom.

This is true even when runtimeInjection is set to true in StyleX Babel Plugin, as it dynamically injecst styles and is not compatible with advanced features like Static Rendering and use dom directives and upcoming RSC.
StyleX CLI is still experimental and does not yet support monorepos, transitive dependencies and universal environments properly.

The way NanoCSS is configured is through simple module aliases, which means it can support react-strict-dom and monorepos, with compatibility with advanced features because it is runtime-only and produces native inline styles.

How

Add example application in the examples/expo-universal

@javascripter javascripter merged commit 0b5673d into master Aug 19, 2024
@javascripter javascripter deleted the expo-universal-example branch August 19, 2024 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant