ReadyNative

Data · Fetching data from your API

Expo + Apollo Client

Apollo Client in an Expo SDK 57 app for iOS and Android, wired by one command and checked by doctor.

Apollo Client 4 is the GraphQL data layer, wired up in src/lib/apollo.tsx. I'd pick it when your backend speaks GraphQL - you get a normalised InMemoryCache, useQuery / useMutation and a cache-and-network default - and I'd stay on react-query or swr for REST. Refetch-on-foreground is already handled: the client uses Apollo 4.3's RefetchEventManager with the windowFocus source swapped for an AppState observable, so every active query refetches when the app comes back unless it sets refetchOn: false.

At a glance

Runs in Expo Go
Yes
Files added
6
npm packages
3
Keys to paste
EXPO_PUBLIC_GRAPHQL_URL
Included in
Starter and Pro

Set it up

bun run setup --data apollo

Setup copies the module in, installs SDK-matched versions and removes the options you did not pick. Then bun run doctor lists every key still missing, with a link to where you get it. The step-by-step guide is in the Apollo Client docs.

Other data options

Get it

Apollo Client ships in Starter and Pro: one payment, lifetime updates. See pricing or browse every module.