Expo + SWR Example
This example shows the bare minimum configuration to get WunderGraph up and running with React Native, using Expo and SWR .
Configuration
The example uses @wundergraph/metro-config
to configure Metro to work with WunderGraph.
1
2
3
4
5
6
7
8
Data source configuration
As the data source, we add a single API, the SpaceX GraphQL API in this case.
1
2
3
4
5
6
7
8
9
10
11
Operation configuration
Next, we configure a simple Operation.
1
2
3
4
5
6
7
Running the application
Now, we can run the application using npm run start
, this will start WunderGraph and Expo. Use the Expo CLI to choose which device you want to run the app on.
Learn more
Deploy to WunderGraph Cloud
The easiest way to deploy your WunderGraph app is to use WunderGraph Cloud.