ibrahimyaacob
ibrahimyaacob•3mo ago

adding react native (expo) to existing Next + Convex app (with Convex Auth)

I'm pretty new with Mobile and prefeably wouldnt want to use Turborepo to avoid major refactor (and i have skill issue). how would i achieve this? any advice ?
12 Replies
Convex Bot
Convex Bot•3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
lexcodeit
lexcodeit•3mo ago
Not the best answer but I manually sync my convex folder after each work session.
ibrahimyaacob
ibrahimyaacobOP•2mo ago
oh i tried this approach, its really really bad imo it seems like turborepo is the best approach, but the real problem is, there's no proper guide on how to set it up
lexcodeit
lexcodeit•5w ago
Yeah, Turbo repo is good but since theres no help right now on how to execute it properly. I'd just do what I can till I get a good guide. It will definitely catch up at some point
thedevstockgirl
thedevstockgirl•5w ago
We use turborepo with convex. What are you trying to achieve, or what is the challenge? Perhaps I can help.
lexcodeit
lexcodeit•4w ago
Just a repo to host my expo app and next js project
ibrahimyaacob
ibrahimyaacobOP•4w ago
apparently setting up turborepo with next, expo & convex are challenging as hell. things just didnt work for me. i need baby step on how to do this 😅
erquhart
erquhart•4w ago
Recommend checking out the turborepo template that the Convex team created as a reference: https://github.com/get-convex/turbo-expo-nextjs-clerk-convex-monorepo
GitHub
GitHub - get-convex/turbo-expo-nextjs-clerk-convex-monorepo: Monore...
Monorepo template with Turborepo, Next.js, Expo, Clerk, Convex - get-convex/turbo-expo-nextjs-clerk-convex-monorepo
ibrahimyaacob
ibrahimyaacobOP•4w ago
i tried it few months back and ran into problem with package installation and i think this repo should be upgraded to use convex auth. i'll give this another shot. but anyhow, i definitely think adding turborepo into convex's quickstart doc is the best way to help developers. i mean Convex IS one of the best the best tool to work with monorepo but why there's no documentation ever written about it.
thedevstockgirl
thedevstockgirl•4w ago
I got you. I guess I did not realize a lot of people struggle with this. And this is actually one of the few things I am actually quite proficient at 😆 . Just saw a video of one my fav youtubers webdevcody struggle through it. I guess it's a sign for me to contribute back a first video of sorts. Will work on something detailed and share. For some context, this is the basic structure of our repo - see image. One of the missing things in the template share by @erquhart is the convex.json file. See the examples in the screenshot, that allows you to point to your convex folder, that way, say is you are working on just web, and don't want to run in the api folder, you can use concurrently to run in one terminal. Also, this was the key for the vercel deployment to work for us. We do use turborepo, but mostly for linting and type-checking in CI. You do need a solid grasp of tsconfigs. For react native, you need some updates to your metro config, but not for convex, just mostly for a monorepo setup. Either way, I will try to make a detailed video next wee.
No description
No description
No description
ibrahimyaacob
ibrahimyaacobOP•4w ago
nice! whats your youtube channel? I'd definitely want to watch this as soon you upload
thedevstockgirl
thedevstockgirl•4w ago
Will create one. 😆

Did you find this page helpful?