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

CLI: Ability to install component optimized for target platform #2725

Open
taneba opened this issue Jan 20, 2025 · 0 comments
Open

CLI: Ability to install component optimized for target platform #2725

taneba opened this issue Jan 20, 2025 · 0 comments
Assignees

Comments

@taneba
Copy link

taneba commented Jan 20, 2025

Description

Proposal to add a cli option that enables us to install install the component optimized for given target platform.

Problem Statement

Now when we install a component with CLI like npx gluestack-ui add button, the component will come with a lot of code to work on both web and native.
Sometimes we don't need it to work on web, in that case, we need to manually remove all web-related code.

Proposed Solution or API

So I want to propose the ability to install optimized code for given platform.
CLI would be something like npx gluestack-ui add button --platform "ios, android".

Alternatives

No response

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants