Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.
In the project there is a .env.example, you can use this file to create a .env. Within that .env you're gonna set the corresponding api token for each variable.
BASE_GRAPHQL_URL=https://graphql.contentful.com/content/v1/spaces/
SLIDER_API_TOKEN=slider-api-token
ANNOUNCEMENT_API_TOKEN=announcement-api-token
Open a new terminal from the root of the React Native project. Run the following command to install the packages:
yarn install
Note: The project was developed using Yarn, if you use npm be aware of this.
Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:
# using npm
npm run android
# OR using Yarn
yarn android
# using npm
npm run ios
# OR using Yarn
yarn ios