- Requires Node.js (version 10 or newer)
npm install -g expo-cligit cloneandcdinto projectnpm install
- Install Expo App on mobile device
expo startinside project repo. Will open browser tab with QR Code- Inside mobile app, go to Projects tab and select 'Scan R Code'
https://docs.expo.io/versions/latest/distribution/building-standalone-apps/
(See Hedera File Server docs for detailed File Server API info)
File should be uploaded as a JSON string with the following key/val pairs:
{
'photoData': base64 string representation of jpg image,
'name': string,
'is21': bool,
'is18': bool,
'address': string
}
If upload is successful, Hedera File Server API should return a comma-separated File ID:
Ex: 0,0,1003
This ID, including commas, should be input via the FileIDRegistration page of the app.
Allows user to input username and pin.
Allows user to enter File ID. Contents of file can be viewed in next page.
Uses File ID from previous page to call hedera file API, get and parse file data, and display.
Allows user to save QR codes representing different combinations of identity features: Ex. QRCode #1: Photo + Name + Address QRCode #2: Photo + is21
Allows user to selected a saved qr code (from previous page).
- Navigation bar/menu: App will require restructuring of state management for nav bar and menu to work properly so they have been disabled. Currently, state on each page is transient, with each page passing relevant state variables to the next page in the sequence.
Ex. FileIDRegistration page passes
fileIdto FileViewer page Navigation between pages at will requires introduction of global state management via Redux or similar library.