gluestack

gluestack Logogluestack

Eject in v2

bronowsm posted this in #support
Open in Discord
Avatar
bronowsmOP
Can you eject components or theme in v2? I can see that v2 creates a config file by default, where I can customize my theme - but what about theme folder with each individual component, as it was in v1 after using eject-theme script?

8 Replies

Avatar
sravankumar101
hey @bronowsm
You can use this guide to customize your theme
https://v1.gluestack.io/ui/docs/home/theme-configuration/customizing-theme/eject-theme
Avatar
bronowsmOP
Hey @sravankumar101 , thank you. But this script seem to be NOT working in gluestack v2. Neither eject-theme, nor eject-components. How can I get the list of components in gluestack V2, which I'm getting while ejecting THEME in v1? Is there still a possibility do do so? Or it's not possible in gluestack v2?
Image
Avatar
sravankumar101
In gluestack v2 we can't eject components / theme @bronowsm
All the components will be present in components/ui/*
Avatar
bronowsmOP
@sravankumar101 I've created pure v2 project in empty NextJS project, I can't see any components. As you can see, those are only files that was autogenerated. There is no list of all components.
Image
Avatar
sravankumar101
Hey @bronowsm You can refer this guide for information about installation https://gluestack.io/ui/docs/home/getting-started/installation
npx gluestack-ui@latest add --all this command will add all the components to your project.
Avatar
bronowsmOP
@sravankumar101 thank you, that's exactly what I was looking for!