A demonstration app for the National Grid carbon intensity API, built in React Native.
- NodeJS
- Yarn
The app uses Expo for development. Install the Expo app on your phone, then run:
yarn install
yarn start
Scan the QR code with the Expo app, and away you go.
The build process is also set up to use Expo. Read the Expo documentation for details on the process, but in summary:
yarn run exp login
yarn run exp start
yarn run exp build:ios | build:android
yarn run build:status
The sample code that actually calls the carbon intensity API is in the /jsx/ForecastDayView.js
file.
- Application icon: "Energy" by BomSymbols from the Noun Project
- Background image: "Road Under Power Line Electricity Pylons" by Victor Hanacek from PicJumbo