Skip to content

Latest commit

 

History

History
34 lines (17 loc) · 1.21 KB

README.md

File metadata and controls

34 lines (17 loc) · 1.21 KB

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.

Preview this App

You can preview this app on on your phone from this page on expo.io datocms-wmf

Setup the Project

Set up your schema on DatoCMS

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.

Deploy with DatoCMS

Clone this repository

First colone this repo git clone https://github.com/datocms/react-native-demo.git

Set DatoCMS API token env variable

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.

Install dependencies and run

Just run yarn install on your cloned project's folder, when finished type yarn start to run your app in development mode.