gluestack

gluestack Logogluestack

Only Import mobile parts of components

depsimon posted this in #support
Open in Discord
Avatar
depsimonOP
Is there a way to only import the mobile components & ignore the web?

I'd like to keep the codebase tiny and don't intend to use the web.

For instance bunx gluestack-ui add vstack currently imports the following files:

- components/ui/vstack/index.tsx
- components/ui/vstack/index.web.tsx
- components/ui/vstack/styles.tsx

I only want the vstack/index.tsx & vstack/styles.tsx (without the isWeb)

1 Reply