React Native support

WunderGraph has official support for React Native. You can use the WunderGraph TypeScript client or SWR package to consume WunderGraph APIs in React Native.

Installation

1
npm i @wundergraph/metro-config

Configuration

Add the following to your metro.config.js:

1
2
3
4
5
6
7
8
// metro.config.js
// Learn more https://docs.expo.io/guides/customizing-metro
const { wgMetroConfig } = require('@wundergraph/metro-config');
const { getDefaultConfig } = require('expo/metro-config');
const config = getDefaultConfig(__dirname);
module.exports = wgMetroConfig(config);

Examples of using React Native with WunderGraph

If you've got any questions, please join our Discord community or contact us.

Previous
React

Was this article helpful to you?
Provide feedback

Edit this page