The project dependencies require a specific version of Node. We recommend using NVM to manage the node version we want to use in the project.
-
Create .zshrc file for Mac only (If it doesn't exist):
touch ~/.zshrc
-
Install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
-
Install node 16.17.0:
nvm install 16.17.0
-
Use node 16.17.0:
nvm use 16.17.0
Please review the NVM github page for more info.
React native creates native iOS and Android components. We recommend using the standard development environment where possible.
- Install the latest version of Android Studio.
- Install the latest version of XCode. (Mac only)
-
Install Watchman:
brew install watchman
-
Install CocoaPods:
sudo gem install cocoapods
-
Install Bundler:
sudo gem install bundler:2.2.31
-
Set Xcode comment line tool
- Launch xcode
- Preferences
- Locations
- Make sure there's a dropdown option selected for the command line tools.
The project requires a variety of API keys to compile. Please review the API keys document to add the required info.
Yarn is used to manage javascript packages for the project. Please follow the steps below to install dependencies.
- Install Yarn (If yarn is not installed):
brew install yarn
- Install all project dependencies with
yarn setup
- Install the required bundles and pods for this project (Mac only):
yarn install-bundle && yarn install-pods
Running the project on Android Studio requires us to create an emulator. Review these instructions for the basic steps. Please make sure your emulator satisfies the following requirements:
- API Level: 28
- RAM: 4048 MB
- VM heap: 1024 MB
- Internal Storage: 4048 MB
- SD card (Studio-Managed): 512 MB
- Open the Android or iOS subfolder using it's corresponding IDE.
- Run the project using the selected simulator.
- Run
yarn start
in the comment line to get the dynamic JavaScript content.
The program isn't working as expected due to some missing API keys. The program gets stuck trying to store the created wallet remotely. Restarting the program by pressing the play button will allow you to access the wallet info stored locally and sign in.
Please test the functionality using the Android project. The iOS project compiles but has some minor issues I may need to fix.