What the best way to use V0 for React Native Expo Apps

Same issue with me. My app is a reactnative based expo app and whenever I run the Add to Codebase "npx shadcn@2.3.0 add ", it tries to create a next-js project which is totally different from the expo reactnative app.

Is there a solution to overcome this ? And when I try connect with github, only the readme.md is created.

Currently, I’m using V0 to generate the React Native Expo based apps. But the process is pretty cumbersome as V0 does not have preview enabled and pushing code to repository through Add to Codebase "npx shadcn@2.3.0 add " does not work. After each prompt, I’m downloading the zip, extracting, running npm i, expo start to validate the functionality.
Is there a better and seamless approach for preview and commit.

Hi @tribhuvandurgam-wave, welcome to the Vercel Community!

I’ll share this feedback with our v0 team and update if there’s a solution.

Have you tried downloading the zip folder from v0? That might work.

The reason this doesn’t work as smoothly is because v0 is primarily intended for Next.js applications on web. We don’t have first class support for React Native/Expo out of the box. You can however generate the code using v0 but have to deploy and manage on your own.

well, the “Deploy” button could be useful if it “obviously” pushed the code to github.
Sometimes it pushes the code, while other times it just fails without any apparent reason.

In short, I tried to make a local clone of my github repo, and sync the changes right from v0 to the local repo via github, but just because the “Deploy” button fails often, I have to manually download the zip file and setup the project from scratch (making duplicates in the process).

Please have a look at this issue. Thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.