This app is a Demo app for using DatoCMS contents via GraphQL api on a React Native app.
This project was bootstrapped with Create React Native App.
You can preview this app on on your phone from this page on expo.io datocms-wmf
By clicking the following button you'll set up a project on DatoCMS with the schema and data that you need to run this example.
First colone this repo
git clone https://github.com/datocms/react-native-demo.git
Add an .env file containing the read-only API token of your DatoCMS site:
echo 'DATO_API_TOKEN=abc123' >> .env
You can find your DatoCMS API token in the Admin area > API tokens section.
Just run yarn install
on your cloned project's folder, when finished type yarn start
to run your app in development mode.