LocalAPI with React Native #5020
Replies: 2 comments 1 reply
-
The LocalAPI can be used in the same server environment where payload itself is served. There and only there you can skip the HTTP-overhead since you're on the server already. Your React Native App must use the REST or GraphQL endpoints. |
Beta Was this translation helpful? Give feedback.
-
Hey there! It's nice to see more folks building with React Native + Payload. If you are using Expo Router 3, you could theoretically use the new API routes, similarly to what Next.js does. Though, as already mentioned, you'd have to host Payload and the Expo server runtime in the same place. You can find more info about this on the API routes docs. |
Beta Was this translation helpful? Give feedback.
-
I'm wondering if anyone has an example of using the LocalAPI within an React Native (Expo) application. I currently have a monorepo with Payload and Expo and was hoping to utilize the LocalAPI for data fetching.
Beta Was this translation helpful? Give feedback.
All reactions