Mobile App to demo the flow app to app and make the integration with our SSI solution easier.
Read the guide we have prepared for the integration with the library @validatedid/did-auth
https://validatedid.github.io/vidchain-doc/#/did-auth
And in the public library need for the DID auth process: https://www.npmjs.com/package/@validatedid/did-auth
- React Native
- Jest for testing
Clone the repository and move to the project directory
git clone https://github.com/validatedid/vidchain-app.git
cd vidchain-app
The code is built using React-Native and running code locally requires a Mac or Linux OS.
-
Install Node.js version 10 (latest stable) and yarn@1 (latest)
-
Install the shared React Native dependencies (
React Native CLI
, notExpo CLI
) -
Install cocoapods by running:
sudo gem install cocoapods
Install the required libraries and packages dependencies
npm install
cd ios && pod install && cd .. # install pods for iOS
If there are errors with the crypto library in React when install the npm install, is necessary to install node core shims and recursively with rn-nodeify:
./node_modules/.bin/rn-nodeify --hack --install
- Install the Android SDK, via Android Studio.
npm run android
This command starts the app in the device if you have it plugged or otherwise it launches an emulator.
- Install the iOS dependencies
- React Native Getting Started - iOS (React Native CLI Quickstart -> [your OS] -> iOS)
- You do not need CocoaPods
- React Native Getting Started - iOS (React Native CLI Quickstart -> [your OS] -> iOS)
npm run ios
This command starts the app in the device if you have it plugged or otherwise it launches an emulator.
Run the tests
npm run test