Using T3 as API & Admin Panel Layer then consuming API layer tRPC on React Native 🤔 utils/api.ts 😭

Im pretty new to tRPC , what i have understood is that tRPC typing is being consumed by the front-end using utils/api.ts. Does this mean if i use T3 as an API layer & Admin Panel layer then i have to copy paste the utils/api helper to my React Native project to have front-end typing :?
13 Replies
mnkhod
mnkhod•16mo ago
do i have to add AppRouter Typing to a different project for both projects to consuming the typing? im confused 😭 maybe i have to add my react native project to T3 also to have the typing support of my T3 API Layer?
Neto
Neto•16mo ago
trpc with next is using next api route as a way to communicate
mnkhod
mnkhod•16mo ago
okay yea but on my react native project when i setup tRPC imma need that AppRouter typing right?
Neto
Neto•16mo ago
GitHub
GitHub - t3-oss/create-t3-turbo: Clean and simple starter repo usin...
Clean and simple starter repo using the T3 Stack along with Expo React Native - GitHub - t3-oss/create-t3-turbo: Clean and simple starter repo using the T3 Stack along with Expo React Native
Neto
Neto•16mo ago
check this repo
mnkhod
mnkhod•16mo ago
holy shit there is a turbo version
Neto
Neto•16mo ago
its t3 + turborepo + react native it's a more specific template
mnkhod
mnkhod•16mo ago
fck yes thank you this makes it 100x complex but worth it wahahhah
Neto
Neto•16mo ago
more complex to start but less complex after
mnkhod
mnkhod•16mo ago
i have no fcken clue how imma sell this idea to the team wahaha
Neto
Neto•16mo ago
try to ask for comment about it show your points and hope that things go well
mnkhod
mnkhod•16mo ago
i feel like they would only wine about expo i fcken pray
Neto
Neto•16mo ago
i know the feel
Want results from more Discord servers?
Add your server