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•2y 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•2y ago
trpc with next is using next api route as a way to communicate
mnkhod
mnkhod•2y ago
okay yea but on my react native project when i setup tRPC imma need that AppRouter typing right?
Neto
Neto•2y 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•2y ago
check this repo
mnkhod
mnkhod•2y ago
holy shit there is a turbo version
Neto
Neto•2y ago
its t3 + turborepo + react native it's a more specific template
mnkhod
mnkhod•2y ago
fck yes thank you this makes it 100x complex but worth it wahahhah
Neto
Neto•2y ago
more complex to start but less complex after
mnkhod
mnkhod•2y ago
i have no fcken clue how imma sell this idea to the team wahaha
Neto
Neto•2y ago
try to ask for comment about it show your points and hope that things go well
mnkhod
mnkhod•2y ago
i feel like they would only wine about expo i fcken pray
Neto
Neto•2y ago
i know the feel
Want results from more Discord servers?
Add your server