RFC: gluestack-ui v2 release #2225
Replies: 8 comments 14 replies
-
Am I correct to assume that the utility/SX props will be dropped? I'm coming from Tamagui to Gluestack and I decided to use gluestack exactly because of the utility/SX props. Not a big fan of the tailwind class hell to be honest. |
Beta Was this translation helpful? Give feedback.
-
@kaumac Unfortunately, the utility/SX props feature will be dropped by default. However, we can develop a Babel plugin to support these useful utility props. This plugin will internally convert utility props to classNames. |
Beta Was this translation helpful? Give feedback.
-
Hi. I think Tailwind integration is a great addition. Does it mean we should be able to use |
Beta Was this translation helpful? Give feedback.
-
Personally, my use case wants a run-time evaluated library (think about a code-pen like component) which is what attracted me to the current styling system. I'll probably stay on that for as long as possible. |
Beta Was this translation helpful? Give feedback.
-
I just discovered Gluestack and IMO going with NativeWind is a great decision. My team has generally stayed away from UI libraries because they have invariably ended up lacking necessary customization options or having performance problems. I think the Gluestack v2 approach of cloning components into the project where they can then be tailored to the specific use case with the power of tailwind is a really unique solution that strikes the perfect balance. Great stuff! 🎉 🚀 🎸 😃 |
Beta Was this translation helpful? Give feedback.
-
Is it going to support RTL layout? |
Beta Was this translation helpful? Give feedback.
-
Any plans on when this will be released? Generally, I like the idea of tailwind, as the IDE/intellisense support for the props-based configuration is very bad and seems inconsistent at times (I've just started looking into gluestack a week ago). My concerns: Nativewind seems to be developed by a single developer (looking at the commit history) and the last "release" of Nativewind v4 (which is still canary) dates back 5 months. There doesn't seem to be a timeline for a release either: nativewind/nativewind#724 (comment) |
Beta Was this translation helpful? Give feedback.
-
My implementation of Gluestack v1 relies on The documentation gets into customizing tokens, but it doesn't mention whether it's possible to customize components via |
Beta Was this translation helpful? Give feedback.
-
Summary
We are planning to release gluestack-ui v2, which includes significant changes and new features designed to enhance performance, improve the developer experience, and provide more flexible, customizable components.
Motivation
gluestack-ui v2 aims to address several limitations identified in the previous version. By adopting a more modular architecture and leveraging the power of NativeWind for styling, we strive to offer a highly performant, easily integrable, and accessible components.
Key Features and Changes
Incremental Adoption
Styling Engine: NativeWind
Tailwind ClassName Support: NativeWind is used as the styling engine, enabling Tailwind class names for seamless customization and styling.
Universal App Development: Tailwind classes facilitate the development of universal apps compatible with Expo and Next.js.
Example:
RSC Compatibility
Non-Bundled Library
Default Primary Color
Improved Developer Experience
Similar API and Patterns
We are maintaining similar APIs and patterns in gluestack-ui v2 as in the previous version. The only significant change is in the styling API, making it easier for developers to transition without needing to learn new usage patterns.
Tested and Proven
We have tested gluestack-ui v2 extensively with multiple projects, and the results have been impressive. Here are some example projects where gluestack-ui v2 has been successfully implemented:
Upgrade from v1
To help existing v1 users get started with gluestack-ui v2, we have prepared detailed migration guide:
Adoption Strategy
To adopt gluestack-ui v2, developers should follow these steps:
Example Usage
Conclusion
We are planning to release gluestack-ui v2 and are seeking comments and feedback from the community. This release represents a major step forward in creating a more performant, customizable, and developer-friendly component library. By focusing on incremental adoption, leveraging NativeWind for styling, and ensuring RSC compatibility, we aim to provide developers with the tools they need to build modern, responsive, and accessible web applications.
Please review this RFC and provide your feedback. Your input is valuable to ensure that gluestack-ui v2 meets the needs and expectations of the developer community.
Feel free to adjust any part of this RFC as needed for your specific context and requirements.
Beta Was this translation helpful? Give feedback.
All reactions