Skip to content

Ability to install component optimized for target platform #112

@taneba

Description

@taneba

Description

Proposal to add a cli option that enables us to 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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions