No data layer
The "No data layer" option of the ReadyNative Expo template: plain fetch; add TanStack Query/Apollo/SWR later.
Expo Go: yes
Runs in Expo Go; no dev build needed for this module.
Nothing is installed - you call fetch yourself. I'd keep this when the app has no backend yet, or when you want to bring your own client; everything else in the template works the same, and with --with-examples, /examples/query shows the core "Module not installed" screen.
Setup
bun run setup --data noneThat's it - there's nothing to configure.
Usage
const res = await fetch("https://api.example.com/me");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const me = (await res.json()) as Me;Gotchas
- Add a real data layer whenever you want caching and refetch-on-foreground:
bun run setup --data react-query(REST),--data swr(REST, smaller) or--data apollo(GraphQL). Each one brings its own provider and example route.
Reference
Everything below is generated from modules/data/none/module.json - the same file bun run setup reads, so it is what actually lands in your repo.
Install
bun run setup --data noneModule id: data/none.
Files
1 files copied to the project root
src/hooks/use-forecast.ts